libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay.AddFile Method

Add file to gapless queue. ANSI version.

Pascal
function AddFile(const FileName: AnsiString; Format: TStreamFormat): Boolean; overload;
Parameters 
Description 
const FileName: AnsiString 
String that specifies the name of the file. 
Format: TStreamFormat 
Stream format. Use sfAutodetect if you need to autodetect stream format of specified file. 
Return Values 
Description 
True 
All OK. 
False 
Error. To get error message read here

All streams added to gapless queue will play without gap between these streams. When one stream ends, next stream from queue starts playing without interruption. Position marker is set to 0 for each stream from queue. This means that when one stream ends, position is set to 0 for next stream. Position is not cumulated. 

You can clear gapless queue with Close.

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

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

Email: zcindori@inet.hr