@@ -23,10 +23,10 @@ double loop_length;
23
23
bool menu_loop_enabled = false ;
24
24
25
25
VOID CALLBACK LoopTimer (
26
- HWND hwnd , // handle to window for timer messages
27
- UINT message , // WM_TIMER message
26
+ HWND, // handle to window for timer messages
27
+ UINT, // WM_TIMER message
28
28
UINT idEvent1, // timer identifier
29
- DWORD dwTime ) // current system time
29
+ DWORD) // current system time
30
30
{
31
31
if (menu_loop_enabled)
32
32
{
@@ -119,7 +119,7 @@ class mainmenu_commands_loop : public mainmenu_commands
119
119
loop_position_end = static_api_ptr_t <playback_control>()->playback_get_position ();
120
120
static_api_ptr_t <playback_control>()->playback_seek (loop_position_start);
121
121
loop_length = loop_position_end - loop_position_start;
122
- ptr2 = SetTimer (NULL , ID_TIMER2, loop_length * 1000 , (TIMERPROC)LoopTimer);
122
+ ptr2 = SetTimer (NULL , ID_TIMER2, (UINT) loop_length * 1000 , (TIMERPROC)LoopTimer);
123
123
console::info (" End playback time of loop" );
124
124
}
125
125
}
@@ -169,7 +169,7 @@ class mainmenu_commands_loop : public mainmenu_commands
169
169
}
170
170
virtual t_uint32 get_sort_priority ()
171
171
{
172
- return sort_priority_dontcare ;
172
+ return 0x80000000 ;
173
173
}
174
174
bool is_checked (t_uint32 p_index)
175
175
{
@@ -184,18 +184,18 @@ class play_callback_loop : public play_callback_static
184
184
{
185
185
public:
186
186
unsigned get_flags () { return flag_on_playback_stop; }
187
- virtual void on_playback_seek (double p_time ) {}
188
- virtual void on_playback_new_track (metadb_handle_ptr p_track ) {}
189
- virtual void on_playback_stop (play_control::t_stop_reason p_reason ) {
187
+ virtual void on_playback_seek (double ) {}
188
+ virtual void on_playback_new_track (metadb_handle_ptr) {}
189
+ virtual void on_playback_stop (play_control::t_stop_reason) {
190
190
if (menu_loop_enabled)
191
191
KillTimer (NULL , ptr2);
192
192
}
193
- virtual void on_playback_pause (bool p_state ) {}
194
- virtual void on_playback_starting (play_control::t_track_command p_command , bool p_paused ) {}
195
- virtual void on_playback_edited (metadb_handle_ptr p_track ) {}
196
- virtual void on_playback_dynamic_info (const file_info& info ) {}
197
- virtual void on_playback_dynamic_info_track (const file_info& info ) {}
198
- virtual void on_playback_time (double p_time ) {}
199
- virtual void on_volume_change (float p_new_val ) {}
193
+ virtual void on_playback_pause (bool ) {}
194
+ virtual void on_playback_starting (play_control::t_track_command, bool ) {}
195
+ virtual void on_playback_edited (metadb_handle_ptr) {}
196
+ virtual void on_playback_dynamic_info (const file_info&) {}
197
+ virtual void on_playback_dynamic_info_track (const file_info&) {}
198
+ virtual void on_playback_time (double ) {}
199
+ virtual void on_volume_change (float ) {}
200
200
};
201
201
static play_callback_static_factory_t <play_callback_loop> g_play_callback_loop;
0 commit comments