libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
Open file

Open disk file.

To play some music, you need to open some music file. You can specify format of this file (mp3, ogg, flac, ... ) or set autodetection method. If autodetection method is set, library will try to detect file format by parsing file name and detecting some known headers in file. 

When file format is detected, or specified by user, decoder will examine file structure to determine if this is valid music file. If file is valid, you can start playing. If file isn't valid, opening will fail and error message will be set. 

Note:
There is special format of file name. Read here.
 

 

To open disk file use:  

C++ 
VB.NET 
C#.NET 
VC.NET 
Delphi 
 
 
 

At the end you need to close previous file to free allocated resources. 

 

C++ 
VB.NET 
C#.NET 
VC.NET 
Delphi 
Copyright (c) 2010. Zoran Cindori - All rights reserved.

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

Email: zcindori@inet.hr