mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Tweak default buffers sizes.
The default low-latency buffer size is now 10 milliseconds per period. The default conservative buffer size is now 100 milliseconds per period.
This commit is contained in:
@@ -3259,12 +3259,12 @@ static MAL_INLINE mal_bool32 mal_is_big_endian()
|
||||
|
||||
// The base buffer size in milliseconds for low latency mode.
|
||||
#ifndef MAL_BASE_BUFFER_SIZE_IN_MILLISECONDS_LOW_LATENCY
|
||||
#define MAL_BASE_BUFFER_SIZE_IN_MILLISECONDS_LOW_LATENCY 25
|
||||
#define MAL_BASE_BUFFER_SIZE_IN_MILLISECONDS_LOW_LATENCY (10*MAL_DEFAULT_PERIODS)
|
||||
#endif
|
||||
|
||||
// The base buffer size in milliseconds for conservative mode.
|
||||
#ifndef MAL_BASE_BUFFER_SIZE_IN_MILLISECONDS_CONSERVATIVE
|
||||
#define MAL_BASE_BUFFER_SIZE_IN_MILLISECONDS_CONSERVATIVE 150
|
||||
#define MAL_BASE_BUFFER_SIZE_IN_MILLISECONDS_CONSERVATIVE (100*MAL_DEFAULT_PERIODS)
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user