libZPlay documentation (Win32)
ZPlay::SetWaveOutDevice Method

Set wave out device for this interface instance.

virtual __stdcall int SetWaveOutDevice(unsigned int nIndex) = 0;
unsigned int nIndex 
Index of wave out device. Call EnumerateWaveOut or zplay_EnumerateWaveOutto get number of wave out devices. Index value is in range from 0 to num_of_devices - 1.
Note: There is special index value WaveOutWaveMapper
Return Values 
All OK. 
Error. To get error message read here

User can specify wave out device for each interface instance. If you have multiple soundcards, with this function you can specify output soundcard. You can also create 2 interface instances and play 2 songs, each song on different soundcard. 

Default wave output is set to WaveOutWaveMapper (class is using waveform-audio output device capable of playing the given format). 

This function has effect on next call to play function. If you call this function while song is playing there is no effect. You need to stop playing and start playing again to apply new settings.

Set wave output to wave mapper (default setting). 

ZPlay C++ Class interface  



C Style interface

Copyright (c) 2010. Zoran Cindori - All rights reserved.