DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TAudioMixer and selecting input line for recording

 
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
mian
Member


Joined: 10 Mar 2004
Posts: 2

PostPosted: 10/03/04 17:51    Post subject: TAudioMixer and selecting input line for recording Reply with quote

Hi,

I've just started working with WaveAudio package (v1.521) and I like it Smile

But I'm a bit confused about TAudioMixerLine.SelectedLine property.
I change it to e.g. 7 (ID of microphone line, on my machine) but Windows Recording Control shows selected line with ID = 1.
I looked at it more and found a rule:
I have 9 lines for recording with IDs 0..8.
When I select "0" then windows shows that "8" is selected;
I select "1" and I get "7";
I select "2" and I get "6" and so on.

ID that I get in Win Recording Control = LinesCount - selectedID - 1

I've looked through the code and it seems to be intentional:
WaveMixer.Pas line: 409
Code:

   Result := fControls[mcSelect].cMultipleItems - DWORD(ValIndex) - 1;


WaveMixer.Pas line: 428
Code:

  ValIndex := fControls[mcSelect].cMultipleItems - DWORD(Value) - 1;


Is it a bug or I'm in the wrong?

Thanks,
mian.
Back to top
View user's profile
mian
Member


Joined: 10 Mar 2004
Posts: 2

PostPosted: 11/03/04 07:32    Post subject: Reply with quote

The problem is on my Win2k mashine. It seems to work fine with Windows ME.
Back to top
View user's profile
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group