## TAudioMixer and selecting input line for recording

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

### 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: Select all
   Result := fControls[mcSelect].cMultipleItems - DWORD(ValIndex) - 1;

WaveMixer.Pas line: 428
Code: Select all
  ValIndex := fControls[mcSelect].cMultipleItems - DWORD(Value) - 1;

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

Thanks,
mian.
mian
Member

Posts: 2
Joined: March 10th, 2004, 4:54 pm

The problem is on my Win2k mashine. It seems to work fine with Windows ME.
mian
Member

Posts: 2
Joined: March 10th, 2004, 4:54 pm