mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-04 11:23:46 +00:00
emulators/rpcs3: switch to system faudio
This commit is contained in:
parent
ea072e2909
commit
12d271da6d
@ -56,9 +56,8 @@ EVDEV_BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto
|
||||
EVDEV_LIB_DEPENDS= libevdev.so:devel/libevdev
|
||||
|
||||
FAUDIO_DESC= FAudio audio support
|
||||
FAUDIO_USES= sdl
|
||||
FAUDIO_USE= SDL=sdl2
|
||||
FAUDIO_CMAKE_BOOL= USE_FAUDIO
|
||||
FAUDIO_LIB_DEPENDS= libFAudio.so:audio/faudio
|
||||
FAUDIO_CMAKE_BOOL= USE_FAUDIO USE_SYSTEM_FAUDIO
|
||||
|
||||
PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio
|
||||
PULSEAUDIO_CMAKE_BOOL= USE_PULSE
|
||||
|
@ -1,23 +0,0 @@
|
||||
https://github.com/FNA-XNA/FAudio/issues/183
|
||||
|
||||
--- 3rdparty/FAudio/src/FAudio_platform_sdl2.c.orig 2020-04-01 14:55:30 UTC
|
||||
+++ 3rdparty/FAudio/src/FAudio_platform_sdl2.c
|
||||
@@ -100,6 +100,18 @@ void FAudio_PlatformInit(
|
||||
want.samples = want.freq / 100;
|
||||
}
|
||||
|
||||
+ /* SDL audio with arts/dsp backends expect ^2, so round up.
|
||||
+ * For 48KHz this should be 512.
|
||||
+ * https://graphics.stanford.edu/~seander/bithacks.html#RoundUpPowerOf2
|
||||
+ */
|
||||
+ want.samples--;
|
||||
+ want.samples |= want.samples >> 1;
|
||||
+ want.samples |= want.samples >> 2;
|
||||
+ want.samples |= want.samples >> 4;
|
||||
+ want.samples |= want.samples >> 8;
|
||||
+ want.samples |= want.samples >> 16;
|
||||
+ want.samples++;
|
||||
+
|
||||
/* Open the device (or at least try to) */
|
||||
iosretry:
|
||||
device = SDL_OpenAudioDevice(
|
Loading…
x
Reference in New Issue
Block a user