Hi You can call waveOutMessage function. waveOutMessage((HWAVEOUT)WAVE_MAPPER, DRVM_MAPPER_PREFERRED_SET, id, 0); DRVM_MAPPER_PREFERRED_SET is defined in old mmddk.h. Simply enum waveOut devices, find id and call this function. I tested this on 2000 and XP. Of course this will be working after mmsystem is loaded. Krzysztof Weiss -----Wiadomość oryginalna----- Od: wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx]W imieniu Konrad Rozesłaniec Wysłano: Monday, May 16, 2005 2:15 PM Do: wdmaudiodev@xxxxxxxxxxxxx Temat: [wdmaudiodev] Default audio playback device - help I've installed drivers for device with multiple audio channels seen as multiple wave devices. Now there's a problem because Windows tries to play its sounds through my lines (device is used by TAPI). I can't set soundcard as preferred audio device with sound control panel - there are only 10 positions. So, how can I set preferred playback device (manually, with code or registry modifications) ??? It has to work for W2k and XP. best regards Konrad ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx URL to WDMAUDIODEV page: http://www.wdmaudiodev.de/ -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.10 - Release Date: 5/13/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.12 - Release Date: 5/17/2005 ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx URL to WDMAUDIODEV page: http://www.wdmaudiodev.de/