libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
libZPlayCpp::zplay_SetWaveInDevice Function

Set wave in device for this interface instance.

C++
__stdcall W_DECLSPEC int zplay_SetWaveInDevice(ZPLAY_HANDLE handle, unsigned int nIndex);
Parameters 
Description 
ZPLAY_HANDLE handle 
ZPLAY handle. Get this handle with zplay_CreateZPlay
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 
Description 
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  

instance->SetWaveInDevice(WaveInWaveMapper);

 

C Style interface

zplay_SetWaveInDevice(instance, WaveInWaveMapper);
Copyright (c) 2010. Zoran Cindori - All rights reserved.

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

Email: zcindori@inet.hr