FS#2426 - Audio playing for X11 simulator

Attached to Project: Rockbox
Opened by Eric Lassauge (lassauge) - Monday, 03 January 2005, 13:07 GMT
Last edited by Daniel Stenberg (bagder) - Thursday, 14 July 2005, 22:17 GMT
Task Type Patches
Category Simulator
Status Closed
Assigned To Daniel Stenberg (bagder)
Operating System
Severity Medium
Priority High
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


Hi, I included my latest work on audio playing
for the X11 simulator (tested on cygwin):
- use the attached patch file AND
- modify the generated Makefile AFTER configuring
for the X11 simulator:
Add this before the line containing '.PHONY' :
# Here you can add -L<path> if libmad is elsewhere
export SOUND_LDFLAGS=-lmad
# Here you can add -I<path> if libmad includes are

Libmad for Cygwin is available as a Cygwin package
on my website (See

Playing is implemented in a separate thread which
feeds the /dev/dsp and is "not really" synchronized
with the time display in the simulator (which is
another running thread counting 1 second ticks).
Try it if you dare :-> I'd like to have feedback of
this running on a Linux workstation.
This task depends upon

Closed by  Daniel Stenberg (bagder)
Thursday, 14 July 2005, 22:17 GMT
Reason for closing:  Out of Date
Comment by Jonas Häggqvist (rasher) - Sunday, 10 April 2005, 00:24 GMT

I was going to test this patch (on linux) - the patch
applies (with a 130 line offset in mpeg.c) except for
./uisimulator/x11/Makefile which has been changed a lot it
seems.. I don't know enough to figure out where the change
belongs in the current Makefiles - if it even belongs in
that file.. could you find out and write a comment here or
update the patch?
Comment by Daniel Stenberg (bagder) - Thursday, 23 June 2005, 21:10 GMT

Yes please. I am very interested in getting this
functionality added to the main sources so I would
appreciate an updated patch!
Comment by Eric Lassauge (lassauge) - Wednesday, 29 June 2005, 10:08 GMT

I´ll try to have a (recent) look at that as soon as possible.
As I have broken (?) the disk of my archos I did´nt spend
time these
days on the rockbox project (BTW if you know how to be able to
reuse a disk that is not starting : not seen by archos and even
not seen when attached to a "real" computer even if you can
hear it spinning and trying to start ... :-<)