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