diff --git a/research/miniaudio_engine.c b/research/miniaudio_engine.c index 7b8ba9ef..5447b6d9 100644 --- a/research/miniaudio_engine.c +++ b/research/miniaudio_engine.c @@ -79,7 +79,7 @@ int main(int argc, char** argv) loadNotification.cb.onSignal = on_sound_loaded; loadNotification.pSound = &sound; - result = ma_sound_init_from_file(&engine, argv[1], MA_DATA_SOURCE_FLAG_DECODE /*| MA_DATA_SOURCE_FLAG_ASYNC | MA_DATA_SOURCE_FLAG_STREAM*/, &group, &baseSound); + result = ma_sound_init_from_file(&engine, argv[1], MA_DATA_SOURCE_FLAG_DECODE | MA_DATA_SOURCE_FLAG_ASYNC /*| MA_DATA_SOURCE_FLAG_STREAM*/, &group, &baseSound); if (result != MA_SUCCESS) { printf("Failed to load sound: %s\n", argv[1]); ma_engine_uninit(&engine); diff --git a/research/miniaudio_engine.h b/research/miniaudio_engine.h index 63a3b784..d859bf26 100644 --- a/research/miniaudio_engine.h +++ b/research/miniaudio_engine.h @@ -923,7 +923,7 @@ struct ma_node_output_bus MA_ATOMIC ma_uint16 refCount; /* Reference count for some thread-safety when detaching. */ MA_ATOMIC ma_bool8 isAttached; /* This is used to prevent iteration of nodes that are in the middle of being detached. Used for thread safety. */ MA_ATOMIC ma_spinlock lock; /* Unfortunate lock, but significantly simplifies the implementation. Required for thread-safe attaching and detaching. */ - MA_ATOMIC float volume; /* Linear 0..1 */ + MA_ATOMIC float volume; /* Linear. */ MA_ATOMIC ma_node_output_bus* pNext; /* If null, it's the tail node or detached. */ MA_ATOMIC ma_node_output_bus* pPrev; /* If null, it's the head node or detached. */ MA_ATOMIC ma_node* pInputNode; /* The node that this output bus is attached to. Required for detaching. */ @@ -6801,7 +6801,7 @@ static ma_result ma_resource_manager_data_buffer_init_nolock(ma_resource_manager } else { /* Slow path. The data for this buffer has not yet been initialized. The first thing to do is - allocate the new data buffer and insert it into the BST. + allocate the new data buffer node and insert it into the BST. Note that there's a possiblity that we're calling this function because we're wanting to initialize a data buffer from an existing data buffer rather than by a file name. In this