- Status Closed
- Percent Complete
- 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
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 ???
2004-07-08 10:13
Reason for closing: Accepted
Additional comments about closing: Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407
Logged In: YES
user_id=259137
Committed. Thanks, Eric!
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
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;
IS THIS?
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.
Committed. Thanks, Eric!