TStockAudioRecorder: how to change source of sound recording

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

TStockAudioRecorder: how to change source of sound recording

Postby dpdelphi » January 28th, 2009, 4:23 pm

Hi sir,

When use TStockAudioRecorder, how to change source of sound recording, I need control which sound source to record, such as cd / line-in / wave-out? I had tried one day, but can't find answer, please help me, thank you very much.
dpdelphi
Active Member
Active Member
 
Posts: 6
Joined: January 28th, 2009, 1:30 pm

Re: TStockAudioRecorder: how to change source of sound recording

Postby Kambiz » January 28th, 2009, 4:27 pm

Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Re: TStockAudioRecorder: how to change source of sound recording

Postby dpdelphi » January 29th, 2009, 12:47 am

I want to select the cmSrcWaveOut, but it seem can't work, I use XP/delphi 2009 and Wave Audio Package Version 1.89:

Code: Select all
AudioMixer.DestinationID:=1;
for LineID := 0 to AudioMixer.LineCount - 1 do
    if (AudioMixer.Lines[LineID].ComponentType = cmSrcWaveOut) then
    begin
      AudioMixer.Master.SelectedLine := LineID;
    end;


Thank you.
dpdelphi
Active Member
Active Member
 
Posts: 6
Joined: January 28th, 2009, 1:30 pm

Re: TStockAudioRecorder: how to change source of sound recording

Postby dpdelphi » January 29th, 2009, 1:23 am

I use "SNDVOL32.EXE /R" command to check which recording source is selected. I want to change the recording source to "Wave Out", Thanks.
dpdelphi
Active Member
Active Member
 
Posts: 6
Joined: January 28th, 2009, 1:30 pm

Re: TStockAudioRecorder: how to change source of sound recording

Postby Kambiz » January 29th, 2009, 9:42 am

Did you try cmDstWaveIn?
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Re: TStockAudioRecorder: how to change source of sound recording

Postby dpdelphi » January 29th, 2009, 1:24 pm

cmDstWaveIn can't work

Image

I want to use TStockAudioRecorder to record the wave-out. the default recording source is cd, so I need use code to change source of sound recording, Thank you.
dpdelphi
Active Member
Active Member
 
Posts: 6
Joined: January 28th, 2009, 1:30 pm

Re: TStockAudioRecorder: how to change source of sound recording

Postby Kambiz » January 29th, 2009, 6:24 pm

Use Mixer Control (SoundManager) demo to find out which control works as you expect. Then, you have to modify or debug the demo to find which ControlType you should look for.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Re: TStockAudioRecorder: how to change source of sound recording

Postby dpdelphi » February 1st, 2009, 2:53 am

SoundManager can't show "volumn" and "select" checkbox, why?
dpdelphi
Active Member
Active Member
 
Posts: 6
Joined: January 28th, 2009, 1:30 pm

Re: TStockAudioRecorder: how to change source of sound recording

Postby Kambiz » February 1st, 2009, 8:29 am

What do you mean "can't show"? No control at all, or what you are looking for?
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Re: TStockAudioRecorder: how to change source of sound recording

Postby dpdelphi » February 1st, 2009, 10:36 am

I can compile and run SoundManager, but every Line "volumn" and "select" checkbox is invisible.
dpdelphi
Active Member
Active Member
 
Posts: 6
Joined: January 28th, 2009, 1:30 pm

Re: TStockAudioRecorder: how to change source of sound recording

Postby Kambiz » February 3rd, 2009, 9:40 am

I have no idea what's going on.

I have attached the executable of sound manager demo. Maybe you can discover the problem using it. :?
Attachments
SoundManager.zip
SoundManager Executable Demo (TAudioMixer)
(221.28 KiB) Downloaded 151 times
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 2 guests

cron