libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
libZPlayVC::TSettingID Enumeration

Interface setting identifier.

C++
enum class TSettingID : int {
  sidWaveBufferSize = 1,
  sidAccurateLength = 2,
  sidAccurateSeek = 3,
  sidSamplerate = 4,
  sidChannelNumber = 5,
  sidBitPerSample = 6,
  sidBigEndian = 7
};
Parameters 
Description 
sidWaveBufferSize 
Change wave buffer size in milliseconds.
Class will always try to have enough data decoded and ready to play.
Note: Minimal size of wave buffer is 100 milliseconds. But this value can be 0. If you set wave buffer size to 0, library will not open wave output and there will be no playing. But you can use callback message to retrieve decoded audio data and play this data by yourself, or save this data into file. If you don't need to play data to soundcard, set wave buffer size to 0.

If this value is too small, there can be problem with playing if your processor can't provide enough decoded data all the time.
If this value is too large, you will notice delay when you apply (enable, disable) sound effects (equalizer, echo, pitch ...). 
sidAccurateLength 
Sample accurate stream length.
Set this setting to 1 to enable "sample" accurate song length calculation. If this setting is 0, there is no guaranty that song length is sample accurate
sidAccurateSeek 
Sample accurate seek.
Set this setting to 1 to enable sample accurate seek.
If this setting is 0, there is no guaranty that seek is sample accurate
sidSamplerate 
Samplerate for PCM format
sidChannelNumber 
Number of channels for PCM format. Valid values are 1 or 2. 
sidBitPerSample 
Bit per sample for PCM format. Valid values are 8 or 16. 
sidBigEndian 
Big-endian or little-endian for PCM format. 1 is big-endian (Motorola), 0 is little-endian (Intel). 

Use this value to specify which setting parameter you need to set or get.

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

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

Email: zcindori@inet.hr