Basic libZPlay interface based on ZPlay C++ class.
This interface is implemented as ZPlay C++ abstract class and related methods.
All you need to do is to create instance of ZPlay class. Interaction with this class is implemented through class methods.
Note: |
ZPlay class is enclosed into libZPlay namespace. Include this namespace into your project to access ZPlay C++ class interface. |
Note: |
You must link your project with dll interface library to access exported functions from libzplay.dll.
Use interface link library from import_libs directory:
|
To create class instance, user must use class factory function CreateZPlay().
#include "libzplay.h" // use libZPlay namespace using namespace libZPlay; // create class instance using class factory function ZPlay *instance = CreateZPlay();
Note: User can't create instance of ZPlay class using new keyword:
#include "libzplay.h" // use namespace for our class using namespace libZPlay; // create class instance using new keyword ZPlay *instance = new ZPlay; // this will fail !!! // 'ZPlay' : cannot instantiate abstract class due to following members
When class instance is created, use ZPlay methods to play your songs.
At the end, class instance must be destroyed with Release method:
// destroy class instance
instance->Release();
|
Name |
Description |
|
Basic libZPlay interface based on ZPlay C++ class. |
|
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 HBITMAP on device context. Only in version 2.00 and above. | |
|
Draw HBITMAP on window control. Only in version 2.00 and above. | |
|
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. | |
|
Set 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 interface settings. | |
|
Get current status of stream (playing, paused, echo status, eqaulizer status, ....) | |
|
Get stream informations (length, sampling rate, channel number, ...), ANSI version | |
|
Get stream informations (length, sampling rate, channel number, ...), UNICODE version | |
|
Get tempo. | |
|
Get library version number. | |
|
Get VU data for left and right channel | |
|
Retrieves the capabilities of a specified waveform-audio input device (ANSI version). | |
|
Retrieves the capabilities of a specified waveform-audio input device (UNICODE version). | |
|
Retrieves the capabilities of a specified waveform-audio output device (ANSI version). | |
|
Retrieves the capabilities of a specified waveform-audio output device (UNICODE version). | |
|
Check if stream data is free. | |
|
Load ID3 data from specified file. (ANSI version) | |
|
Load ID3 extended data from specified file. (ANSI version) Only in version 2.00 and above. | |
|
Load ID3 extended data from specified file. (UNICODE version) Only in version 2.00 and above. | |
|
Load ID3 data from specified file. (UNICODE version) | |
|
Load ID3 data from current stream. (ANSI version) | |
|
Load ID3 extended data from current stream. (ANSI version) Only in version 2.00 and above. | |
|
Load ID3 extended data from current stream. (UNICODE version) Only in version 2.00 and above. | |
|
Load ID3 data from current stream. (UNICODE version) | |
|
Mix stereo channels into mono channel. | |
|
Open disk file (ANSI version). | |
|
Open disk file (ANSI version). | |
|
Open memory stream. | |
|
Pause playing. | |
|
Start playing from current position. | |
|
Play specified segment of song, in loop if needed. | |
|
Push new data to dynamic stream. | |
|
Destroy interface instance. | |
|
Resume paused playing. | |
|
Enable or disable reverse mode. | |
|
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 interface instance. | |
|
Set wave out device for this interface instance. | |
|
Set wave output to disk file. (ANSI version) | |
|
Set wave output to disk file. (UNICODE version) | |
|
Slide internal volume. | |
|
Cut center or sides from stereo. | |
|
Stop playing. |
Name |
Description |
The following table lists classes in this documentation. | |
The methods of the ZPlay class are listed here. |
Copyright (c) 2010. Zoran Cindori - All rights reserved.
Web: http://libzplay.sourceforge.net/ Email: zcindori@inet.hr |