Rockbox

  • Status Closed
  • Percent Complete
    0%
  • Task Type Patches
  • Category User Interface → Simulator
  • Assigned To No-one
  • Operating System
  • Severity Low
  • Priority Very Low
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by lassauge - 2004-05-27
Last edited by linusnielsen - 2004-07-08

FS#2207 - Preliminary patch for audio playing

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 ???

Closed by  linusnielsen
2004-07-08 10:13
Reason for closing:  Accepted
Additional comments about closing:  

Logged In: YES
user_id=259137

Committed. Thanks, Eric!

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 :→

Updated for rockbox-daily-20040616

Updated for rockbox-daily-20040624.
Deleted all old patch files.

Project Manager

Committed. Thanks, Eric!

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing