|
Freya
0.0.1
A Gtk3 MPD Client
|
A Wrapper for mpd_status. More...
#include <Status.hh>
Public Member Functions | |
| Status (mpd_status &status, unsigned long nextSongID) | |
| ~Status () | |
| int | get_volume () |
| Get volume 0-100. | |
| bool | get_repeat () |
| True if on repeat mode. | |
| bool | get_random () |
| True if on random mode. | |
| bool | get_single () |
| True if on single mode. | |
| bool | get_consume () |
| True if on consume mode. | |
| unsigned | get_queue_length () |
| Return the length of the queue (0 to UINT_MAX) | |
| unsigned | get_queue_version () |
| The version of the Queue, starting from 0. | |
| mpd_state | get_state () |
| State of the Playback, MPD_STATE_PAUSE,_PLAY... | |
| unsigned | get_crossfade () |
| Crossfade in seconds. | |
| float | get_mixrampdb () |
| Intelligent blending treshold. | |
| float | get_mixrampdelay () |
| Intelligent blending delay. | |
| int | get_song_pos () |
| Song position in the queue of the currently playing song. | |
| int | get_song_id () |
| Database ID of the current playing song. | |
| unsigned | get_elapsed_time () |
| Elapsed time in seconds of the current song. | |
| unsigned | get_elapsed_ms () |
| Elapsed time in milliseconds of the currently playing song (higher resolution) | |
| unsigned | get_total_time () |
| Total time of the current song in seconds. | |
| unsigned | get_kbit_rate () |
| Current kbit rate. | |
| unsigned | get_update_id () |
| Update ID, or 0 if no updates running. | |
| const char * | get_error () |
| Any error message, you dont need to use this. | |
| uint32_t | get_audio_sample_rate () |
| Current sample rate. | |
| uint8_t | get_audio_bits () |
| Used audio bits. | |
| uint8_t | get_audio_channels () |
| Used audio channels (Currently only Stereo or Mono) | |
| MPD::Status::Status | ( | mpd_status & | status, |
| unsigned long | nextSongID | ||
| ) |
| uint8_t MPD::Status::get_audio_bits | ( | ) |
Used audio bits.
| uint8_t MPD::Status::get_audio_channels | ( | ) |
Used audio channels (Currently only Stereo or Mono)
| uint32_t MPD::Status::get_audio_sample_rate | ( | ) |
Current sample rate.
| bool MPD::Status::get_consume | ( | ) |
True if on consume mode.
| unsigned MPD::Status::get_crossfade | ( | ) |
Crossfade in seconds.
| unsigned MPD::Status::get_elapsed_ms | ( | ) |
Elapsed time in milliseconds of the currently playing song (higher resolution)
| unsigned MPD::Status::get_elapsed_time | ( | ) |
Elapsed time in seconds of the current song.
| const char* MPD::Status::get_error | ( | ) |
Any error message, you dont need to use this.
| unsigned MPD::Status::get_kbit_rate | ( | ) |
Current kbit rate.
| float MPD::Status::get_mixrampdb | ( | ) |
Intelligent blending treshold.
| float MPD::Status::get_mixrampdelay | ( | ) |
Intelligent blending delay.
| unsigned MPD::Status::get_queue_length | ( | ) |
Return the length of the queue (0 to UINT_MAX)
| unsigned MPD::Status::get_queue_version | ( | ) |
The version of the Queue, starting from 0.
This is used for the plchanged command, to only list the changes the versions since XYZ
| bool MPD::Status::get_random | ( | ) |
True if on random mode.
| bool MPD::Status::get_repeat | ( | ) |
True if on repeat mode.
| bool MPD::Status::get_single | ( | ) |
True if on single mode.
| int MPD::Status::get_song_id | ( | ) |
Database ID of the current playing song.
| int MPD::Status::get_song_pos | ( | ) |
Song position in the queue of the currently playing song.
State of the Playback, MPD_STATE_PAUSE,_PLAY...
| unsigned MPD::Status::get_total_time | ( | ) |
Total time of the current song in seconds.
| unsigned MPD::Status::get_update_id | ( | ) |
Update ID, or 0 if no updates running.
| int MPD::Status::get_volume | ( | ) |
Get volume 0-100.
1.8.0