Play specified segment of song, in loop if needed.
Public Function PlayLoop(ByVal TimeFormatStart As TTimeFormat, ByRef StartPosition As TStreamTime, ByVal TimeFormatEnd As TTimeFormat, ByRef EndPosition As TStreamTime, ByVal NumberOfCycles As UInteger, ByVal ContinuePlaying As Boolean) As Boolean
Parameters |
Description |
ByVal TimeFormatStart As TTimeFormat |
Time format of StartPosition parameter. With this parameter you need to specify which member of TStreamTime is valid. |
ByRef StartPosition As TStreamTime |
Reference to TStreamTime structure specifying loop starting position. |
ByVal TimeFormatEnd As TTimeFormat |
Time format of EndPosition parameter. With this parameter you need to specify which member of TStreamTime is valid. |
ByRef EndPosition As TStreamTime |
Reference to TStreamTime structure specifying loop ending position. |
ByVal NumberOfCycles As UInteger |
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 ... |
ByVal ContinuePlaying As Boolean |
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 |