From ec5d44627fb8a409c445741264cc4f2995a17721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Hohensohn?= Date: Sat, 10 Jan 2004 15:39:56 +0000 Subject: next round of playback function split: everything in place, working and used; except for the playtime git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4218 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/mp3_playback.h | 8 ++++++++ firmware/export/mpeg.h | 4 ++++ 2 files changed, 12 insertions(+) (limited to 'firmware/export') diff --git a/firmware/export/mp3_playback.h b/firmware/export/mp3_playback.h index 2767092..3c190f2 100644 --- a/firmware/export/mp3_playback.h +++ b/firmware/export/mp3_playback.h @@ -40,6 +40,12 @@ int mpeg_sound_numdecimals(int setting); void mpeg_set_pitch(int percent); #endif + +/* exported just for mpeg.c, to keep the recording there */ +#ifdef HAVE_MAS3587F +void demand_irq_enable(bool on); +#endif + /* new functions, to be exported to plugin API */ void mp3_play_init(void); void mp3_play_data(unsigned char* start, int size, @@ -47,6 +53,8 @@ void mp3_play_data(unsigned char* start, int size, ); void mp3_play_pause(bool play); void mp3_play_stop(void); +long mp3_get_playtime(void); +void mp3_reset_playtime(void); #define SOUND_VOLUME 0 diff --git a/firmware/export/mpeg.h b/firmware/export/mpeg.h index 2a629f4..ff003e6 100644 --- a/firmware/export/mpeg.h +++ b/firmware/export/mpeg.h @@ -90,6 +90,10 @@ void mpeg_set_buffer_margin(int seconds); unsigned int mpeg_error(void); void mpeg_error_clear(void); +/* in order to keep the recording here, I have to expose this */ +void rec_tick(void); +void playback_tick(void); /* FixMe: get rid of this, use mp3_get_playtime() */ + #define MPEG_STATUS_PLAY 1 #define MPEG_STATUS_PAUSE 2 #define MPEG_STATUS_RECORD 4 -- cgit v1.1