medfall

A super great game engine
Log | Files | Refs

commit 0422929f211ca7886b1ff12fbb92651ce233642c
parent 6c61b7f9a4f72ddd1b6d904f5b982f97ef3f3103
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed, 12 Sep 2018 18:23:16 +0300

Mix about 3ms of audio per wakeup on Linux. Need to investigate this

Diffstat:
linux_audio_output.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/linux_audio_output.cc b/linux_audio_output.cc @@ -94,7 +94,7 @@ static THREAD( audio_output_thread ) { AudioOutputDevice * device = ( AudioOutputDevice * ) data; while( load_acquire( &device->shutting_down ) == 0 ) { - constexpr u32 num_samples = 1024; + constexpr u32 num_samples = 128; // about 3ms, this might be too high still STATIC_ASSERT( ARRAY_COUNT( device->buffer.samples ) % num_samples == 0 ); u32 cursor = load_acquire( &device->buffer.cursor );