1
0
Fork 0
forked from len0rd/rockbox

Moved the low-level playback functionality into a new, separate module "mp3_playback". This e.g. allows to export a memory playback API to the plugins, opens the door to games with sound, UI sounds, etc.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4192 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jörg Hohensohn 2004-01-05 20:42:51 +00:00
parent 974c2f0d43
commit f993365447
11 changed files with 1081 additions and 930 deletions

View file

@ -37,6 +37,7 @@
#include "serial.h"
#endif
#include "mpeg.h"
#include "mp3_playback.h"
#include "main_menu.h"
#include "thread.h"
#include "settings.h"
@ -78,14 +79,15 @@ void init(void)
sleep(HZ/2);
tree_init();
playlist_init();
mpeg_init( global_settings.volume,
global_settings.bass,
global_settings.treble,
global_settings.balance,
global_settings.loudness,
global_settings.bass_boost,
global_settings.avc,
global_settings.channel_config );
mp3_init( global_settings.volume,
global_settings.bass,
global_settings.treble,
global_settings.balance,
global_settings.loudness,
global_settings.bass_boost,
global_settings.avc,
global_settings.channel_config );
mpeg_init();
while (button_get(false) != 0)
; /* Empty the keyboard buffer */
}
@ -197,14 +199,15 @@ void init(void)
/* No buffer allocation (see buffer.c) may take place after the call to
mpeg_init() since the mpeg thread takes the rest of the buffer space */
mpeg_init( global_settings.volume,
global_settings.bass,
global_settings.treble,
global_settings.balance,
global_settings.loudness,
global_settings.bass_boost,
global_settings.avc,
global_settings.channel_config );
mp3_init( global_settings.volume,
global_settings.bass,
global_settings.treble,
global_settings.balance,
global_settings.loudness,
global_settings.bass_boost,
global_settings.avc,
global_settings.channel_config );
mpeg_init();
/* no auto-rolo on startup any more, but I leave it here for reference */
#if 0

View file

@ -26,6 +26,7 @@
#include "system.h"
#include "lcd.h"
#include "mpeg.h"
#include "mp3_playback.h"
#include "mas.h"
#include "button.h"
#include "kernel.h"

View file

@ -26,6 +26,7 @@
#include "icons.h"
#include "font.h"
#include "mpeg.h"
#include "mp3_playback.h"
#include "usb.h"
#include "settings.h"
#include "status.h"

View file

@ -31,6 +31,7 @@
#include "backlight.h"
#include "lcd.h"
#include "mpeg.h"
#include "mp3_playback.h"
#include "string.h"
#include "ata.h"
#include "fat.h"

View file

@ -23,7 +23,7 @@
#include "lcd.h"
#include "menu.h"
#include "button.h"
#include "mpeg.h"
#include "mp3_playback.h"
#include "settings.h"
#include "status.h"
#include "screens.h"

View file

@ -24,7 +24,7 @@
#include "thread.h"
#include "settings.h"
#include "status.h"
#include "mpeg.h"
#include "mp3_playback.h"
#include "wps.h"
#ifdef HAVE_RTC
#include "timefuncs.h"

View file

@ -33,6 +33,7 @@
#include "wps.h"
#include "wps-display.h"
#include "mpeg.h"
#include "mp3_playback.h"
#include "usb.h"
#include "status.h"
#include "main_menu.h"