~ubuntu-branches/ubuntu/saucy/xmms2/saucy-proposed

« back to all changes in this revision

Viewing changes to src/clients/lib/xmmsclient/playback.c

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ragwitz
  • Date: 2009-05-02 08:31:32 UTC
  • mto: (1.1.6 upstream) (6.1.3 sid)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20090502083132-y0ulwiqbk4lxfd4z
ImportĀ upstreamĀ versionĀ 0.6DrMattDestruction

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  XMMS2 - X Music Multiplexer System
2
 
 *  Copyright (C) 2003-2008 XMMS2 Team
 
2
 *  Copyright (C) 2003-2009 XMMS2 Team
3
3
 *
4
4
 *  PLUGINS ARE NOT CONSIDERED TO BE DERIVED WORK !!!
5
5
 *
96
96
 */
97
97
 
98
98
xmmsc_result_t *
99
 
xmmsc_playback_seek_ms (xmmsc_connection_t *c, unsigned int milliseconds)
 
99
xmmsc_playback_seek_ms (xmmsc_connection_t *c, int milliseconds)
100
100
{
101
101
        xmms_ipc_msg_t *msg;
102
102
 
103
103
        x_check_conn (c, NULL);
104
104
 
105
105
        msg = xmms_ipc_msg_new (XMMS_IPC_OBJECT_OUTPUT, XMMS_IPC_CMD_SEEKMS);
106
 
        xmms_ipc_msg_put_uint32 (msg, milliseconds);
 
106
        xmms_ipc_msg_put_int32 (msg, milliseconds);
107
107
 
108
108
        return xmmsc_send_msg (c, msg);
109
109
}
139
139
 */
140
140
 
141
141
xmmsc_result_t *
142
 
xmmsc_playback_seek_samples (xmmsc_connection_t *c, unsigned int samples)
 
142
xmmsc_playback_seek_samples (xmmsc_connection_t *c, int samples)
143
143
{
144
144
        xmms_ipc_msg_t *msg;
145
145
 
146
146
        x_check_conn (c, NULL);
147
147
 
148
148
        msg = xmms_ipc_msg_new (XMMS_IPC_OBJECT_OUTPUT, XMMS_IPC_CMD_SEEKSAMPLES);
149
 
        xmms_ipc_msg_put_uint32 (msg, samples);
 
149
        xmms_ipc_msg_put_int32 (msg, samples);
150
150
 
151
151
        return xmmsc_send_msg (c, msg);
152
152
}
198
198
}
199
199
 
200
200
/**
201
 
 * Request the current id signal. This will be called then the 
 
201
 * Request the current id broadcast. This will be called then the
202
202
 * current playing id is changed. New song for example.
203
203
 */
204
204
xmmsc_result_t *
247
247
 
248
248
xmmsc_result_t *
249
249
xmmsc_playback_volume_set (xmmsc_connection_t *c,
250
 
                           const char *channel, unsigned int volume)
 
250
                           const char *channel, int volume)
251
251
{
252
252
        xmms_ipc_msg_t *msg;
253
253
 
257
257
        msg = xmms_ipc_msg_new (XMMS_IPC_OBJECT_OUTPUT,
258
258
                                XMMS_IPC_CMD_VOLUME_SET);
259
259
        xmms_ipc_msg_put_string (msg, channel);
260
 
        xmms_ipc_msg_put_uint32 (msg, volume);
 
260
        xmms_ipc_msg_put_int32 (msg, volume);
261
261
 
262
262
        return xmmsc_send_msg (c, msg);
263
263
}