MG> hello, the music and sfx in rocksndiamonds are scratchy on my system.
MG> note that i have an onboard AC'97 sound card.  i ran into the same issue
MG> with wesnoth, freedroidrpg, and neverball recently
MG> (http://bugs.debian.org/405841, http://bugs.debian.org/406437,
MG> http://bugs.debian.org/410489 respectively).  the solution for those games
MG> was to set the audio sampling rate on the sound card to 44100 Hz (see the
MG> bug reports for more detail including patches).  is there any way to set
MG> the audio sampling rate in rocksndiamonds?  otherwise, this capability
MG> needs to be added in.

MG> thank you very much for the hard work.

Please test this patch (attache).

(But I consider that utillizing this patch is wrong. It is necessary to
correct a your sound device driver.)

--- rocksndiamonds-3.2.4+dfsg.orig/src/libgame/sound.h
+++ rocksndiamonds-3.2.4+dfsg/src/libgame/sound.h
@@ -32,6 +32,7 @@
 /* values for platform specific sound initialization */
 #define AUDIO_SAMPLE_RATE_8000		8000
 #define AUDIO_SAMPLE_RATE_22050		22050
+#define AUDIO_SAMPLE_RATE_44100   44100
 
 #define AUDIO_FRAGMENT_SIZE_512		512
 #define AUDIO_FRAGMENT_SIZE_1024	1024
@@ -51,7 +52,7 @@
 #if defined(AUDIO_UNIX_NATIVE) && !defined(AUDIO_STREAMING_DSP)
 #define DEFAULT_AUDIO_SAMPLE_RATE	AUDIO_SAMPLE_RATE_8000
 #else
-#define DEFAULT_AUDIO_SAMPLE_RATE	AUDIO_SAMPLE_RATE_22050
+#define DEFAULT_AUDIO_SAMPLE_RATE	AUDIO_SAMPLE_RATE_44100
 #endif
 
 #if defined(PLATFORM_HPUX)

Attachment: signature.asc
Description: Digital signature

Reply via email to