Have a TAudioPlayer and TAudioRecorder on a Settings form in my application and am filling two radiogroups with sound devices for each (using the sample code in viewtopic.php?f=7&t=479). The user can select which play and record device to use and all works as it should... except for one thing.
Below the radiogroups I have 2 buttons to open the play and record mixer dialogs. Using the deviceIDs from above I am using ShellExecute to run SndVol32.exe with command line switches, i.e. sndvol32.exe -P -D<play deviceID> and sndvol32.exe -R -D<record deviceID> This works on some systems but not others. The systems it has trouble with is where the built in sound card is 2 separate devices (input and output) and I am trying to open the the play or record mixer for a USB soundbox also connected to that system and it keeps opening the built in sound card device's mixer dialog.
What is the preferred way to open mixer dialogs that hopefully won't have this problem?