libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay.OpenFile Method

Open disk file. ANSI version.

Pascal
function OpenFile(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

Use this function to open disk file. Function will open disk file and check if this file is valid file according to specified stream format. If you use sfAutodetect as FileName parameter function will try to detect stream format of specified file and open file using detected stream format.

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

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

Email: zcindori@inet.hr