libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay Delphi Class interface

Delphi Class interface for libZPlay library.

This is Delphi class wrapper for libzplay.dll library. Each method of this class is wrapper for one of C Style functions exported from libzplay.dll library. 

Note:
ZPlay Delphi Class must have access to libzplay.dll to function properly.
 

All you need to do is to create instance of ZPlay class. Interaction with this class is implemented through class methods

 

How to use Delphi interface
// add libZPlay.pas to your project
// ...

// include libZPlay namespace
uses libZPlay;

// ...

// create ZPlay class
var
  player: ZPlay;

// ...

player := ZPlay.Create;

// open file and play
player.OpenFile(OpenDialog1.FileName, sfAutodetect);
player.StartPlayback();

// ...
// at the end destroy class
player.Free;

 

 
Name 
Description 
 
Delphi Class interface for libZPlay library. 
Name 
Description 
Specifies a waveform-audio input device capable of recording the given format. 
Specifies a waveform-audio output device capable of playing the given format. 
 
Name 
Description 
 
Add file to gapless queue. ANSI version. 
 
Add file to gapless queue. UNICODE version. 
 
Close open stream. 
 
Detect beat-per-minute of current stream. 
 
Detect beat-per-minute value of specified file. ANSI version. 
 
Detect beat-per-minute value of specified file. UNICODE version. 
 
Draw FFT graph on window control using window handle. 
 
Draw FFT graph on window control using window handle. 
 
Enable or disable echo. 
 
Enable or disable equalizer. 
 
Enumerate waveform-audio input devices. 
 
Enumerate waveform-audio output devices. 
 
Get current bitrate. 
 
Get dynamic stream load. 
 
Get current echo effects. 
 
Get equalizer band gain. 
 
Get equalizer parameters, band gain and preamp gain. 
 
Get equalizer points of frequency bands. 
 
Get equalizer preamp gain. 
 
Get description of last error. ANSI version. 
 
Get description of last error. UNICODE version. 
 
Get FFT data for currently playing samples. 
 
Get parameters of FFT graph
 
Determine stream format of specified file. ANSI version. 
 
Determine stream format of specified file. UNICODE version. 
 
Get output volume of wave out device driver. 
 
Get pitch. 
 
Get internal volume. 
 
Get current position. 
 
Get rate. 
 
Get class instance settings. 
 
Get current status of stream (playing, paused, echo status, eqaulizer status, ....) 
 
Get stream informations (length, sampling rate, channel number, ...). 
 
Get stream informations (length, sampling rate, channel number, ...). 
 
Get tempo. 
 
Get library version number. 
 
Get VU data for left and right channel 
 
Retrieves the capabilities of a specified waveform-audio input device. 
 
Retrieves the capabilities of a specified waveform-audio input device. 
 
Retrieves the capabilities of a specified waveform-audio output device. 
 
Retrieves the capabilities of a specified waveform-audio output device. 
 
Check if stream data is free. 
 
Load ID3 data from specified file. ANSI version. 
 
Load extended ID3 data from specified file. Only in version 2.00 and above. (ANSI version) 
 
Load extended ID3 data from specified file. Only in version 2.00 and above. (UNICODE version) 
 
Load ID3 data from specified file. UNICODE varsion. 
 
Load ID3 data from current stream. (ANSI version) 
 
Load extended ID3 data from current stream. Only in version 2.00 and above. (ANSI version) 
 
Load extended ID3 data from current stream. Only in version 2.00 and above. (UNICODE version) 
 
Load ID3 data from current stream. (ANSI version) 
 
Mix stereo channels into mono channel. 
 
Open disk file. ANSI version. 
 
Open disk file. UNICDOE version. 
 
Open memory stream. 
 
Pause playing. 
 
Play specified segment of song, in loop if needed. 
 
Push new data to dynamic stream
 
Resume paused playing. 
 
Enable or disable reverse mode. 
 
Seek 
Seek position. 
 
Set callback function. 
 
Set and change echo effect parameters. 
 
Set equalizer band gain. 
 
Set equalizer parameters, band gain and preamp gain. 
 
Set equalizer points to create new frequency bands. 
 
Set equalizer preamp gain. 
 
Set and change parameters of FFT graph
 
Set external volume. 
 
Change pitch without changing tempo. 
 
Set internal volume. 
 
Change playing rate (change pitch and tempo). 
 
Set interface settings. 
 
Change tempo without changing pitch. 
 
Set wave in device for this class instance. 
 
Set wave out device for this class instance. 
 
Set wave output to disk file. (ANSI version) 
 
Set wave output to disk file. (UNICODE version) 
 
Slide internal volume. 
 
Start playing from current position. 
 
Cut center or sides from stereo. 
 
Stop playing. 
 
Name 
Description 
 
Beat-per-minute detection method. 
 
Callback messages. 
 
Echo effect structure. 
 
FFT graph horizontal frequency scale. 
 
FFT graph parameter identifier. 
 
Minimal FFT graph size. 
 
FFT graph type. 
 
FFT window. 
 
ID3 informations. 
 
Extended ID3 informations. Only in version 2.00 and above. (ANSI version) 
 
Extended ID3 informations. Only in version 2.00 and above. (UNICODE version) 
 
ID3 informations. 
 
TID3 picture. Only in version 2.00 and above. (ANSI version) 
 
TID3 picture. Only in version 2.00 and above. (UNICODE version) 
 
ID3 version identifier. 
 
Seek method. 
 
Interface setting identifier. 
 
Stream format identifier. 
 
Hour-minute-second time format. 
 
Stream informations ( length, sampling rate, ...). 
 
Stream informations ( length, sampling rate, ...). 
 
Dynamic stream load informations. 
 
Stream status informations. 
 
Stream time structure. 
 
Time format. 
 
Wave input info. 
 
Wave input info. 
 
Wave out supported formats. 
 
Wave out optional functionality supported by the device. 
 
Wave out info. 
 
Wave out info. 
Name 
Description 
 
The methods of the ZPlay class are listed here. 
The following table lists classes in this documentation. 
The following table lists structs, records, enums in this documentation. 
The following table lists types in this documentation. 
The following table lists constants in this documentation. 
Name 
Description 
This is type libZPlayDelphi.PECHO_EFFECT. 
Callback function prototype. 
 
 
Copyright (c) 2010. Zoran Cindori - All rights reserved.

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

Email: zcindori@inet.hr