foobar2000 SDK
2015-08-03
|
#include <play_callback.h>
Public Member Functions | |
play_callback_impl_base (unsigned p_flags=~0) | |
~play_callback_impl_base () | |
void | on_playback_dynamic_info (const file_info &p_info) |
void | on_playback_dynamic_info_track (const file_info &p_info) |
void | on_playback_edited (metadb_handle_ptr p_track) |
void | on_playback_new_track (metadb_handle_ptr p_track) |
void | on_playback_pause (bool p_state) |
void | on_playback_seek (double p_time) |
void | on_playback_starting (play_control::t_track_command p_command, bool p_paused) |
void | on_playback_stop (play_control::t_stop_reason p_reason) |
void | on_playback_time (double p_time) |
void | on_volume_change (float p_new_val) |
void | play_callback_reregister (unsigned flags, bool refresh=false) |
Additional Inherited Members | |
Public Types inherited from play_callback | |
enum | { flag_on_playback_starting = 1 << 0, flag_on_playback_new_track = 1 << 1, flag_on_playback_stop = 1 << 2, flag_on_playback_seek = 1 << 3, flag_on_playback_pause = 1 << 4, flag_on_playback_edited = 1 << 5, flag_on_playback_dynamic_info = 1 << 6, flag_on_playback_dynamic_info_track = 1 << 7, flag_on_playback_time = 1 << 8, flag_on_volume_change = 1 << 9, flag_on_playback_all } |
Protected Member Functions inherited from play_callback | |
play_callback () | |
~play_callback () | |
Implementation helper.
Definition at line 70 of file play_callback.h.
|
inline |
Definition at line 72 of file play_callback.h.
|
inline |
Definition at line 75 of file play_callback.h.
|
inlinevirtual |
Dynamic info (VBR bitrate etc) change.
Implements play_callback.
Reimplemented in playback_event_notify.
Definition at line 89 of file play_callback.h.
|
inlinevirtual |
Per-track dynamic info (stream track titles etc) change. Happens less often than on_playback_dynamic_info().
Implements play_callback.
Reimplemented in playback_event_notify.
Definition at line 90 of file play_callback.h.
|
inlinevirtual |
Called when currently played file gets edited.
Implements play_callback.
Reimplemented in playback_event_notify.
Definition at line 88 of file play_callback.h.
|
inlinevirtual |
Playback advanced to new track.
Implements play_callback.
Reimplemented in playback_event_notify.
Definition at line 84 of file play_callback.h.
|
inlinevirtual |
Called on pause/unpause.
Implements play_callback.
Reimplemented in playback_event_notify.
Definition at line 87 of file play_callback.h.
|
inlinevirtual |
User has seeked to specific time.
Implements play_callback.
Reimplemented in playback_event_notify.
Definition at line 86 of file play_callback.h.
|
inlinevirtual |
Playback process is being initialized. on_playback_new_track() should be called soon after this when first file is successfully opened for decoding.
Implements play_callback.
Reimplemented in playback_event_notify.
Definition at line 83 of file play_callback.h.
|
inlinevirtual |
Playback stopped.
Implements play_callback.
Reimplemented in playback_event_notify.
Definition at line 85 of file play_callback.h.
|
inlinevirtual |
Called every second, for time display.
Implements play_callback.
Reimplemented in playback_event_notify.
Definition at line 91 of file play_callback.h.
|
inlinevirtual |
User changed volume settings. Possibly called when not playing.
p_new_val | new volume level in dB; 0 for full volume. |
Implements play_callback.
Reimplemented in playback_volume_notify, and playback_event_notify.
Definition at line 92 of file play_callback.h.
|
inline |
Definition at line 78 of file play_callback.h.