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

Change pitch without changing tempo.

C++
__stdcall __declspec(dllimport) int zplay_SetPitch(ZPLAY_HANDLE handle, unsigned int nPitch);
Parameters 
Description 
ZPLAY_HANDLE handle 
ZPLAY handle. Get this handle with zplay_CreateZPlay
unsigned int nPitch 
New pitch value. Normal pitch = 100, smaller values represent lower pitch, larger values represent higher pitch.
Note: This value can't be 0. 
Return Values 
Description 
All OK. 
Error. To get error message read here

Pitch value 100 indicates normal pitch and sound is not changed at all. 

To lower pitch, set pitch to value smaller than 100. This will lower pitch without changing tempo. But this value can't be 0 because you can't play something by not playing at all with pitch 0 :-) 

To raise pitch, set pitch to value larger than 100. This will raise pitch without changing tempo.

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

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

Email: zcindori@inet.hr