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

Set external volume.

C++
__stdcall __declspec(dllimport) int zplay_SetMasterVolume(ZPLAY_HANDLE handle, unsigned int nLeftVolume, unsigned int nRightVolume);
Parameters 
Description 
ZPLAY_HANDLE handle 
ZPLAY handle. Get this handle with zplay_CreateZPlay
unsigned int nLeftVolume 
Specifies volume for left channel. Volume range is from 0 to 100. 
unsigned int nRightVolume 
Specifies volume for right channel. Volume range is from 0 to 100. 
Return Values 
Description 
All OK. 
Error. To get error message read here

This function will change wave out device driver volume affecting all volume on computer. 

Note: Use player volume control if you need to control volume of specific song. 

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

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

Email: zcindori@inet.hr