mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Potential fixes for Raspberry Pi.
This commit is contained in:
@ -401,10 +401,10 @@ void InitAudioDevice(void)
|
||||
mal_device_config deviceConfig = mal_device_config_init(DEVICE_FORMAT, DEVICE_CHANNELS, DEVICE_SAMPLE_RATE, NULL, OnSendAudioDataToDevice);
|
||||
|
||||
// Special case for PLATFORM_RPI.
|
||||
#if defined(PLATFORM_RPI)
|
||||
deviceConfig.alsa.noMMap = MAL_TRUE;
|
||||
deviceConfig.bufferSizeInFrames = 2048;
|
||||
#endif
|
||||
//#if defined(PLATFORM_RPI)
|
||||
// deviceConfig.alsa.noMMap = MAL_TRUE;
|
||||
// deviceConfig.bufferSizeInFrames = 2048;
|
||||
//#endif
|
||||
|
||||
result = mal_device_init(&context, mal_device_type_playback, NULL, &deviceConfig, NULL, &device);
|
||||
if (result != MAL_SUCCESS)
|
||||
|
||||
Reference in New Issue
Block a user