mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
Fix wrong buffer size computation for SDL audio. This led to borked sound in some
applications, and wrong timings in others. http://bugzilla.libsdl.org/show_bug.cgi?id=1679
This commit is contained in:
@@ -9,13 +9,13 @@ BUILD {
|
|||||||
cd libsdl-1.2-hg
|
cd libsdl-1.2-hg
|
||||||
cp /boot/common/data/aclocal/libtool.m4 acinclude
|
cp /boot/common/data/aclocal/libtool.m4 acinclude
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
cp /boot/common/bin/libtool libtool
|
|
||||||
MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
|
MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
|
||||||
LIBDIR=`finddir B_COMMON_LIB_DIRECTORY`
|
LIBDIR=`finddir B_COMMON_LIB_DIRECTORY`
|
||||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||||
--datarootdir=`finddir B_COMMON_DATA_DIRECTORY` \
|
--datarootdir=`finddir B_COMMON_DATA_DIRECTORY` \
|
||||||
--libdir=$LIBDIR \
|
--libdir=$LIBDIR \
|
||||||
--mandir=$MANDIR
|
--mandir=$MANDIR
|
||||||
|
cp /boot/common/bin/libtool libtool
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
18
media-libs/libsdl/patches/libsdl-1.2-hg.patch
Normal file
18
media-libs/libsdl/patches/libsdl-1.2-hg.patch
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
--- libsdl-1.2-hg/src/audio/baudio/SDL_beaudio.cc dim. nov. 04 19:07:49 2012 +0100
|
||||||
|
+++ b/src/audio/baudio/SDL_beaudio.cc mar. janv. 01 22:41:22 2013 +0100
|
||||||
|
@@ -199,11 +199,11 @@
|
||||||
|
return (-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
- format.buffer_size = spec->samples;
|
||||||
|
-
|
||||||
|
/* Calculate the final parameters for this audio specification */
|
||||||
|
SDL_CalculateAudioSpec(spec);
|
||||||
|
|
||||||
|
+ format.buffer_size = spec->size;
|
||||||
|
+
|
||||||
|
/* Subscribe to the audio stream (creates a new thread) */
|
||||||
|
{ sigset_t omask;
|
||||||
|
SDL_MaskSignals(&omask);
|
||||||
|
return (-1);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user