Page 1 of 1

TStockAudioRecorder: how to change source of sound recording

PostPosted: January 28th, 2009, 4:23 pm
by dpdelphi
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.

Re: TStockAudioRecorder: how to change source of sound recording

PostPosted: January 28th, 2009, 4:27 pm
by Kambiz

Re: TStockAudioRecorder: how to change source of sound recording

PostPosted: January 29th, 2009, 12:47 am
by dpdelphi
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.

Re: TStockAudioRecorder: how to change source of sound recording

PostPosted: January 29th, 2009, 1:23 am
by dpdelphi
I use "SNDVOL32.EXE /R" command to check which recording source is selected. I want to change the recording source to "Wave Out", Thanks.

Re: TStockAudioRecorder: how to change source of sound recording

PostPosted: January 29th, 2009, 9:42 am
by Kambiz
Did you try cmDstWaveIn?

Re: TStockAudioRecorder: how to change source of sound recording

PostPosted: January 29th, 2009, 1:24 pm
by dpdelphi
cmDstWaveIn can't work



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.

Re: TStockAudioRecorder: how to change source of sound recording

PostPosted: January 29th, 2009, 6:24 pm
by Kambiz
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.

Re: TStockAudioRecorder: how to change source of sound recording

PostPosted: February 1st, 2009, 2:53 am
by dpdelphi
SoundManager can't show "volumn" and "select" checkbox, why?

Re: TStockAudioRecorder: how to change source of sound recording

PostPosted: February 1st, 2009, 8:29 am
by Kambiz
What do you mean "can't show"? No control at all, or what you are looking for?

Re: TStockAudioRecorder: how to change source of sound recording

PostPosted: February 1st, 2009, 10:36 am
by dpdelphi
I can compile and run SoundManager, but every Line "volumn" and "select" checkbox is invisible.

Re: TStockAudioRecorder: how to change source of sound recording

PostPosted: February 3rd, 2009, 9:40 am
by Kambiz
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. :?