The component I mentioned http://www.fi.muni.cz/~xkovalc/zip/amixer.zip
does support selecting the soundcard device. I use it in my application
with a combobox to select the soundcard, and then anoher combobox to
select a mixer to mute or unmute and/or adjust the volume slider.
for Index := 0 to AudioMixer.NumberOfLine-1 do
begin
AudioMixer.MixerID := Index;
DeviceSelection.Items.Add(AudioMixer.ProductName);
end;
To change the selected soundcard, just set AudioMixer.MixerID. 0 =
first soundcard, 1 = 2nd soundcard, etc
As far as I understand, the sound card selection only affect the application
using the mixer component. In no way it changes the default sound card that
_other_ applications are using.
Am I wrong ?
Can you do a small test for me ? You need to have at least two sound cards
in your system. Double click on a wav file. This would launch your player
(for example MS-MediaPlayer). Note the sound device the player is using.
Then quit the mediaplayer. Then run your program using the AudioMixer
component and using that component select another sound device for playback.
Then double click again on the wav file. Again the mediaplayer comes up and
now should use the second sound device selected by AudioMixer component. If
mediaplayer still use the same sound device, then AudioMixer component
doesn't change the default sound device. Conduce the same test using "sound
& multimedia" control panel applet. You'll see it works.
--
[EMAIL PROTECTED]
The author for the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi