Play specified segment of song, in loop if needed.
public bool PlayLoop(TTimeFormat TimeFormatStart, ref TStreamTime StartPosition, TTimeFormat TimeFormatEnd, ref TStreamTime EndPosition, uint NumberOfCycles, bool ContinuePlaying);
Parameters |
Description |
TTimeFormat TimeFormatStart |
Time format of StartPosition parameter. With this parameter you need to specify which member of TStreamTime is valid. |
ref TStreamTime StartPosition |
Reference to TStreamTime structure specifying loop starting position. |
TTimeFormat TimeFormatEnd |
Time format of EndPosition parameter. With this parameter you need to specify which member of TStreamTime is valid. |
ref TStreamTime EndPosition |
Reference to TStreamTime structure specifying loop ending position. |
uint NumberOfCycles |
Number of loop cycles. This value can't be 0. If this value is 1, function will play portion from pStartTime to pEndTime once. If this value is 2, function will play portion from pStartTime to pEndTime twice ... |
bool ContinuePlaying |
If this value is false, playing will stop when loop is done with cycles. If this value is true, playing will continue when loop is done with cycles. |
Return Values |
Description |
True |
All OK. |
False |
Error. To get error message read here. |
Previous playing will be stopped, function will seek to pStartTime and start playing.
Note: Accuracy of seek position depends on interface settings. See accurate seek.
Warning: This function will fail on dynamic stream.
Copyright (c) 2010. Zoran Cindori - All rights reserved.
Web: http://libzplay.sourceforge.net/ Email: zcindori@inet.hr |