From 19c6e66c1353993659ee007a6c1792a6b0b7ba13 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sun, 16 Mar 2008 13:55:16 +0000 Subject: Implement the playback event handling as a system-wide multi-purpose event system. Unified mpeg.c and playback.c audio event handling. Converted ata_idle_notify to use the new event handling system also. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16682 a1c6a512-1295-4272-9138-f99709370657 --- apps/tagtree.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'apps/tagtree.c') diff --git a/apps/tagtree.c b/apps/tagtree.c index c5e3ebff1e..4572204ae5 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c @@ -924,14 +924,9 @@ void tagtree_init(void) root_menu = 0; uniqbuf = buffer_alloc(UNIQBUF_SIZE); -#if CONFIG_CODEC == SWCODEC - playback_add_event(PLAYBACK_EVENT_TRACK_BUFFER, tagtree_buffer_event); - playback_add_event(PLAYBACK_EVENT_TRACK_FINISH, tagtree_track_finish_event); -#else - audio_set_track_buffer_event(tagtree_buffer_event); - audio_set_track_unbuffer_event(tagtree_track_finish_event); -#endif - + + add_event(PLAYBACK_EVENT_TRACK_BUFFER, tagtree_buffer_event); + add_event(PLAYBACK_EVENT_TRACK_FINISH, tagtree_track_finish_event); } static bool show_search_progress(bool init, int count) -- cgit v1.2.3