ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/DecentralizedMedia/BeepRemote.cpp
(Generate patch)

Comparing DecentralizedMedia/BeepRemote.hpp (file contents):
Revision 464 by douglas, 2005-06-07T05:40:41-07:00 vs.
Revision 466 by douglas, 2005-06-07T06:07:49-07:00

# Line 38 | Line 38 | public:
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)
# Line 98 | Line 97 | public:
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); }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines