libZPlay documentation (Win32)
ZPlay::SetWaveInDevice Method

Set wave in device for this interface instance.

virtual __stdcall int SetWaveInDevice(unsigned int nIndex) = 0;
unsigned int nIndex 
Index of wave out device. Call EnumerateWaveIn or zplay_EnumerateWaveIn 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 WaveInWaveMapper
Return Values 
All OK. 
Error. To get error message read here

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

Default wave input is set to WaveInWaveMapper (class is using waveform-audio input device capable of recording 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 input to wave mapper (default setting). 

ZPlay C++ Class interface  



C Style interface

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