38 |
|
list_ = ::g_list_append(list_, const_cast<char*>(item->c_str())); |
39 |
|
|
40 |
|
::xmms_remote_playlist_add(session, list_); |
41 |
– |
|
41 |
|
::g_list_free(list_); |
42 |
|
} |
43 |
|
void PlaylistAdd(const std::string& item) |
97 |
|
if (shuffle != IsShuffle()) |
98 |
|
ToggleShuffle(); |
99 |
|
} |
100 |
< |
void GetEqualizer(float& preamp, float*& bands) { ::xmms_remote_get_eq(session, &preamp, &bands); } |
100 |
> |
void GetEqualizer(float& preamp, float bands[10]) |
101 |
> |
{ |
102 |
> |
float* bands_; |
103 |
> |
|
104 |
> |
::xmms_remote_get_eq(session, &preamp, &bands_); |
105 |
> |
g_memmove(bands_, bands, sizeof (bands)); |
106 |
> |
::g_free(bands_); |
107 |
> |
} |
108 |
|
float GetEqualizerPreamp() { ::xmms_remote_get_eq_preamp(session); } |
109 |
|
float GetEqualizerBand(int band) { ::xmms_remote_get_eq_band(session, band); } |
110 |
< |
void SetEqualizer(float preamp, float* bands) { ::xmms_remote_set_eq(session, preamp, bands); } |
110 |
> |
void SetEqualizer(float preamp, float bands[10]) { ::xmms_remote_set_eq(session, preamp, bands); } |
111 |
|
void SetEqualizerPreamp(float preamp) { ::xmms_remote_set_eq_preamp(session, preamp); } |
112 |
|
void SetEqualizerBand(int band, float value) { ::xmms_remote_set_eq_band(session, band, value); } |
113 |
|
void Quit() { ::xmms_remote_quit(session); } |