comparison xmms-1.2.10-songpos.patch @ 405:773885f3b723

int -> gint
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 02 Jun 2006 12:31:04 +0000
parents 52ad7e234a2c
children
comparison
equal deleted inserted replaced
404:c556999b4994 405:773885f3b723
78 +|*| to set the slider. If the slider is dragged, 78 +|*| to set the slider. If the slider is dragged,
79 +|*| the plugin's seek() is called with the position. 79 +|*| the plugin's seek() is called with the position.
80 +|*| (If last <= first the feature is turned off) 80 +|*| (If last <= first the feature is turned off)
81 +\*/ 81 +\*/
82 + 82 +
83 +static int song_pos_cur, song_pos_first, song_pos_num = 0; 83 +static gint song_pos_cur, song_pos_first, song_pos_num = 0;
84 + 84 +
85 +void set_song_position(int pos, int first, int last) 85 +void set_song_position(gint pos, gint first, gint last)
86 +{ 86 +{
87 + last -= first; 87 + last -= first;
88 + song_pos_cur = pos; 88 + song_pos_cur = pos;
89 + song_pos_first = first; 89 + song_pos_first = first;
90 + song_pos_num = last; 90 + song_pos_num = last;
258 +++ xmms-1.2.10-patched/xmms/plugin.h Tue Mar 9 23:05:33 2004 258 +++ xmms-1.2.10-patched/xmms/plugin.h Tue Mar 9 23:05:33 2004
259 @@ -154,4 +154,6 @@ 259 @@ -154,4 +154,6 @@
260 void (*render_freq)(gint16 freq_data[2][256]); /* Render the freq data, don't do anything time consuming in here */ 260 void (*render_freq)(gint16 freq_data[2][256]); /* Render the freq data, don't do anything time consuming in here */
261 } VisPlugin; 261 } VisPlugin;
262 262
263 +void set_song_position(int pos, int first, int last); 263 +void set_song_position(gint pos, gint first, gint last);
264 + 264 +
265 #endif 265 #endif