Rockbox

Tasklist

FS#2207 - Preliminary patch for audio playing

Attached to Project: Rockbox
Opened by Eric Lassauge (lassauge) - Thursday, 27 May 2004, 16:39 GMT
Last edited by Linus Nielsen Feltzing (linusnielsen) - Thursday, 08 July 2004, 10:13 GMT
Task Type Patches
Category Simulator
Status Closed
Assigned To No-one
Operating System
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Here is a preliminary patch for playing sound within
the simulator (X11 version not windows) :
- corrected the existing files
- added the targets in Makefile

If you want to enable sound you must have
libmad somewhere and modify the generated
Makefile for the simulator to add sound flags:

--- Makefile.orig 2004-05-27 18:22:18.037046400
+0200
+++ Makefile 2004-05-27 18:28:41.137918400 +0200
@@ -17,7 +17,7 @@
all: sim

sim:
- $(MAKE) -C $(SIMDIR) DISPLAY=$(DISPLAY)
KEYPAD=$(KEYPAD) OBJDIR=$(THISDIR)
VERSION=$(VERSION) LANGUAGE=$(LANGUAGE)
+ $(MAKE) -C $(SIMDIR) DISPLAY=$(DISPLAY)
KEYPAD=$(KEYPAD) OBJDIR=$(THISDIR)
VERSION=$(VERSION) LANGUAGE=$(LANGUAGE)
HAVE_MPEG_PLAY=1 SOUND_LDFLAGS="-L/tmp/libmad-
0.15.1b/.libs -lmad" SOUND_CFLAGS="-I/tmp/libmad-
0.15.1b -DHAVE_LIBMAD"

clean:
$(MAKE) -C $(SIMDIR) DISPLAY=$(DISPLAY)
KEYPAD=$(KEYPAD) OBJDIR=$(THISDIR) clean

- generated rockboxui is linked with libmad


BUT: the sound procuced (on my WIN NT + Cygwin PC) is
not accurate ("not something known" noise) !!!

Did someone recently worked on the sound stuff ???
This task depends upon

Closed by  Linus Nielsen Feltzing (linusnielsen)
Thursday, 08 July 2004, 10:13 GMT
Reason for closing:  Accepted
Additional comments about closing:  Logged In: YES
user_id=259137

Committed. Thanks, Eric!
Comment by Eric Lassauge (lassauge) - Friday, 28 May 2004, 16:59 GMT

Modified things again and now sound is no more ugly !!!
See the new audio_patch file ...

T'was:
--- ./uisimulator/x11/oss_sound.c.orig 2002-05-15
09:27:48.000000000 +0200
+++ ./uisimulator/x11/oss_sound.c 2004-05-25
18:01:32.350387200 +0200
@@ -39,7 +39,7 @@
}

int config_sound(sound_t* sound, int sound_freq, int
channels) {
- int format=AFMT_U16_LE;
+ int format=AFMT_S16_NE;
int setting=0x000C000D; // 12 fragments size 8kb ? WHAT
IS THIS?

sound->freq=sound_freq;


Now should be the time to synchronize sound played and
WPS :->
Comment by Eric Lassauge (lassauge) - Thursday, 17 June 2004, 08:59 GMT

Updated for rockbox-daily-20040616
Comment by Eric Lassauge (lassauge) - Thursday, 24 June 2004, 12:54 GMT

Updated for rockbox-daily-20040624.
Deleted all old patch files.
Comment by Linus Nielsen Feltzing (linusnielsen) - Thursday, 08 July 2004, 10:13 GMT

Committed. Thanks, Eric!

Loading...