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

Change playing rate (change pitch and tempo).

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

Rate value 100 indicates normal playing rate and sound is not changed at all. 

To slow down playing, set rate to value smaller than 100. This will slow down playback and output pitch will also be changed to lower values. 

To speed up playing, set rate to value larger than 100. This will speed up playback and output pitch will also be changed to higher values.

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

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

Email: zcindori@inet.hr