libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay.SetWaveOutDevice Method

Set wave out device for this class instance.

C#
public bool SetWaveOutDevice(uint Index);
Parameters 
Description 
uint Index 
Index of wave out device. Call EnumerateWaveOut to get number of wave out devices. Index value is in range from 0 to num_of_devices - 1.
Note: There is special index value TWaveOutMapper
Return Values 
Description 
True 
All OK. 
False 
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 TWaveOutMapper (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.

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

Web: http://libzplay.sourceforge.net/

Email: zcindori@inet.hr