Re: [AD] sound frequency?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Fri, 2004-05-07 at 10:19, Elias Pschernig wrote:

> Ok, the attached patch corrects the default value then.

Um, somehow I attached the file instead of the patch :| No idea how that
was possible.. my mind must have completely gone.

Here the 1-line patch..

-- 
Elias Pschernig <elias@xxxxxxxxxx>
Index: src/unix/uoss.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/unix/uoss.c,v
retrieving revision 1.9
diff -u -r1.9 uoss.c
--- src/unix/uoss.c	9 Nov 2001 10:09:45 -0000	1.9
+++ src/unix/uoss.c	7 May 2004 08:16:58 -0000
@@ -247,7 +247,7 @@
 
    bits = (_sound_bits == 8) ? 8 : 16;
    stereo = (_sound_stereo) ? 1 : 0;
-   freq = (_sound_freq > 0) ? _sound_freq : 45454;
+   freq = (_sound_freq > 0) ? _sound_freq : 44100;
 
    /* fragment size is specified in samples, not in bytes */
    fragsize = _oss_fragsize * (bits / 8) * (stereo ? 2 : 1);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/