mian Member
Joined: 10 Mar 2004 Posts: 2
|
Posted: 10/03/04 17:51 Post subject: TAudioMixer and selecting input line for recording |
|
|
Hi,
I've just started working with WaveAudio package (v1.521) and I like it
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. |
|