The Qmmp class stores global settings and enums.
More...
#include <qmmp.h>
List of all members.
Public Types |
| enum | State {
Playing = 0,
Paused,
Stopped,
Buffering,
NormalError,
FatalError
} |
| enum | MetaData {
UNKNOWN = -1,
TITLE = 0,
ARTIST,
ALBUMARTIST,
ALBUM,
COMMENT,
GENRE,
COMPOSER,
YEAR,
TRACK,
DISCNUMBER,
URL
} |
| enum | ReplayGainKey { REPLAYGAIN_TRACK_GAIN = 0,
REPLAYGAIN_TRACK_PEAK,
REPLAYGAIN_ALBUM_GAIN,
REPLAYGAIN_ALBUM_PEAK
} |
| enum | AudioFormat {
PCM_UNKNOWM = -1,
PCM_S8 = 0,
PCM_U8,
PCM_S16LE,
PCM_S16BE,
PCM_U16LE,
PCM_U16BE,
PCM_S24LE,
PCM_S24BE,
PCM_U24LE,
PCM_U24BE,
PCM_S32LE,
PCM_S32BE,
PCM_U32LE,
PCM_U32BE,
PCM_FLOAT
} |
| enum | ChannelPosition {
CHAN_NULL = 0x00,
CHAN_FRONT_LEFT = 0x01,
CHAN_FRONT_RIGHT = 0x02,
CHAN_REAR_LEFT = 0x04,
CHAN_REAR_RIGHT = 0x08,
CHAN_FRONT_CENTER = 0x10,
CHAN_REAR_CENTER = 0x20,
CHAN_SIDE_LEFT = 0x40,
CHAN_SIDE_RIGHT = 0x80,
CHAN_LFE = 0x100
} |
Static Public Member Functions |
| static const QString | configFile () |
| static const QString | configDir () |
| static void | setConfigDir (const QString &path) |
| static const QString | strVersion () |
| static const QString | pluginsPath () |
| static QString | systemLanguageID () |
| static QString | uiLanguageID () |
| static void | setUiLanguageID (const QString &code) |
Detailed Description
The Qmmp class stores global settings and enums.
- Author:
- Ilya Kotov <forkotov02@hotmail.ru>
Member Enumeration Documentation
Audio formats
- Enumerator:
| PCM_UNKNOWM |
Unknown format
|
| PCM_S8 |
Signed 8 bit
|
| PCM_U8 |
Unsigned 8 bit
|
| PCM_S16LE |
Signed 16 bit Little Endian
|
| PCM_S16BE |
Signed 16 bit Big Endian
|
| PCM_U16LE |
Unsigned 16 bit Little Endian
|
| PCM_U16BE |
Unsigned 16 bit Big Endian
|
| PCM_S24LE |
Signed 24 bit Little Endian using low three bytes in 32-bit word
|
| PCM_S24BE |
Signed 24 bit Big Endian using low three bytes in 32-bit word
|
| PCM_U24LE |
Unsigned 24 bit Little Endian using low three bytes in 32-bit word
|
| PCM_U24BE |
Unsigned 24 bit Big Endian using low three bytes in 32-bit word
|
| PCM_S32LE |
Signed 32 bit Little Endian
|
| PCM_S32BE |
Signed 32 bit Big Endian
|
| PCM_U32LE |
Unsigned 32 bit Little Endian
|
| PCM_U32BE |
Unsigned 32 bit Big Endian
|
| PCM_FLOAT |
Float 32 bit Native Endian, Range -1.0 to 1.0
|
Audio channels enum.
- Enumerator:
| CHAN_NULL |
No channel
|
| CHAN_FRONT_LEFT |
Front left channel
|
| CHAN_FRONT_RIGHT |
Front right channel
|
| CHAN_REAR_LEFT |
Rear left channel
|
| CHAN_REAR_RIGHT |
Rear right channel
|
| CHAN_FRONT_CENTER |
Front center channel
|
| CHAN_REAR_CENTER |
Rear center channel
|
| CHAN_SIDE_LEFT |
Side left channel
|
| CHAN_SIDE_RIGHT |
Side right channel
|
| CHAN_LFE |
Low-frequency effects channel
|
Metadata keys
- Enumerator:
| TITLE |
Title
|
| ARTIST |
Artist
|
| ALBUMARTIST |
Album artist
|
| ALBUM |
Album
|
| COMMENT |
Comment
|
| GENRE |
Genre
|
| COMPOSER |
Composer
|
| YEAR |
Year
|
| TRACK |
Track number
|
| DISCNUMBER |
Disc number
|
| URL |
Stream url or local file path
|
Keys of ReplayGain information
- Enumerator:
| REPLAYGAIN_TRACK_GAIN |
track gain
|
| REPLAYGAIN_TRACK_PEAK |
track peak
|
| REPLAYGAIN_ALBUM_GAIN |
album gain
|
| REPLAYGAIN_ALBUM_PEAK |
album peak
|
Playback state enum
- Enumerator:
| Playing |
The player is playing source
|
| Paused |
The player has currently paused its playback
|
| Stopped |
The player is ready to play source
|
| Buffering |
The Player is waiting for data to be able to start playing.
|
| NormalError |
Input source is invalid or unsupported. Player should skip this file
|
| FatalError |
This means unrecorvable error die audio output problems. Player should abort playback.
|
Member Function Documentation
| static const QString configDir |
( |
| ) |
[static] |
Returns the configuration directory path.
| static const QString configFile |
( |
| ) |
[static] |
Returns the configuration file name, including the path.
| static const QString pluginsPath |
( |
| ) |
[static] |
Returns the location of the installed Qmmp plugins.
| static void setConfigDir |
( |
const QString & |
path | ) |
[static] |
Overrides default configuration directory path.
| static void setUiLanguageID |
( |
const QString & |
code | ) |
[static] |
Sets user interface language.
- Parameters:
-
| code | Language code; code "auto" means autodetection. |
| static const QString strVersion |
( |
| ) |
[static] |
Returns Qmmp library version.
| static QString systemLanguageID |
( |
| ) |
[static] |
| static QString uiLanguageID |
( |
| ) |
[static] |
Returns state of the user interface language option. Code "auto" means autodetection.
The documentation for this class was generated from the following file:
- /usr/src/RPM/BUILD/qmmp-0.10-svn/src/qmmp/qmmp.h