dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: mpeg audio playback in x11 uisimulator

mpeg audio playback in x11 uisimulator

From: Dave Chapman <>
Date: Fri, 10 May 2002 01:22:50 +0100


I've just committed to CVS my first attempt to add mpeg audio playback to the
x11 version of the uisimulator.

It uses the GPL'd libmad ( and
currently needs to be explicitly enabled. To compile with libmad support,
type either

make MPEG_PLAY=1


export MPEG_PLAY=1

In the current implementation, the mp3 file is played (using the OSS device
/dev/dsp) when it is selected using the directory browser. Pressing any key
cancels the playback.

The current "mpeg API" consists of the single function:

int mpeg_play(char* fname);

which returns when a key is pressed or the song has been played.

The next stage (in parallel with a win32 implementation) is to devise and
implement an API for use by both the simulator and the real device.

Any suggestions?

Can I also take this chance to suggest that we don't do anything to limit the
rockbox firmware to only playing mp3 (MPEG-1, Layer 3) files - the MAS
decoder handles all types of MPEG audio.


Received on 2002-05-10

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy