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

Enable or disable reverse mode.

C++
__stdcall __declspec(dllimport) int zplay_ReverseMode(ZPLAY_HANDLE handle, int fEnable);
Parameters 
Description 
ZPLAY_HANDLE handle 
ZPLAY handle. Get this handle with zplay_CreateZPlay
int fEnable 
Value 1 enables reverse mode, value 0 disables reverse mode and restore normal mode. 
Return Values 
Description 
All OK. 
Error. To get error message read here

By enabling reverse mode song will play backward. Backward playing algorithm is efficient. There is no large memory allocation, no predecoding of whole file, no temporary disk file, .... This is true backward playing, backward decoding. 

Note: You can enable or disable reverse mode while song is playing. Just switch reverse mode on and off. 

This function will not stop playing. If song is playing and you enters reverse mode, song will continue playing backward to 0 position. Position indicator will also display real position. 

Note: In reverse mode, position indicator displays real position, it goes backward. 

Note: You can't play backward from 0 position. So, you need to seek away from song beginning and then play backward. 

Warning: You can't use this function on dynamic stream.  

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

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

Email: zcindori@inet.hr