1 |
// Beep Remote |
2 |
// |
3 |
// Douglas Thrift |
4 |
// |
5 |
// $Id$ |
6 |
|
7 |
#include <cxx/standard.hh> |
8 |
|
9 |
#include "BeepRemote.hpp" |
10 |
|
11 |
template <> |
12 |
void BeepRemote::PlaylistAdd(const cse::String& item) |
13 |
{ |
14 |
::GList list = { const_cast<char*>(item.NullTerminate()), NULL, NULL }; |
15 |
|
16 |
::xmms_remote_playlist_add(session, &list); |
17 |
} |
18 |
|
19 |
void BeepRemote::GetEqualizer(float& preamp, float bands[10]) const |
20 |
{ |
21 |
float* bands_; |
22 |
|
23 |
::xmms_remote_get_eq(session, &preamp, &bands_); |
24 |
ext::CopyAssign(bands, bands_, 10); |
25 |
::g_free(bands_); |
26 |
} |