diff --git a/extras/decoders/libopus/miniaudio_libopus.c b/extras/decoders/libopus/miniaudio_libopus.c index d2c64e66..4f1c2b5d 100644 --- a/extras/decoders/libopus/miniaudio_libopus.c +++ b/extras/decoders/libopus/miniaudio_libopus.c @@ -55,8 +55,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_libopus = ma_libopus_ds_get_data_format, ma_libopus_ds_get_cursor, ma_libopus_ds_get_length, - NULL, /* onSetLooping */ - 0 /* flags */ + NULL /* onSetLooping */ }; diff --git a/extras/decoders/libvorbis/miniaudio_libvorbis.c b/extras/decoders/libvorbis/miniaudio_libvorbis.c index ff17f2cc..a23e1045 100644 --- a/extras/decoders/libvorbis/miniaudio_libvorbis.c +++ b/extras/decoders/libvorbis/miniaudio_libvorbis.c @@ -58,8 +58,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_libvorbis = ma_libvorbis_ds_get_data_format, ma_libvorbis_ds_get_cursor, ma_libvorbis_ds_get_length, - NULL, /* onSetLooping */ - 0 /* flags */ + NULL /* onSetLooping */ }; diff --git a/miniaudio.h b/miniaudio.h index 93c95142..411468db 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -6230,7 +6230,6 @@ typedef struct ma_result (* onGetCursor )(ma_data_source* pDataSource, ma_uint64* pCursor); ma_result (* onGetLength )(ma_data_source* pDataSource, ma_uint64* pLength); ma_result (* onSetLooping )(ma_data_source* pDataSource, ma_bool32 isLooping); - ma_uint32 flags; } ma_data_source_vtable; typedef ma_data_source* (* ma_data_source_get_next_proc)(ma_data_source* pDataSource); @@ -68372,8 +68371,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_AudioRingBuffer = ma_audio_ring_buffer__data_source_on_get_data_format, NULL, /* No notion of a cursor. */ ma_audio_ring_buffer__data_source_on_get_length, - NULL, /* onSetLooping */ - 0 + NULL /* onSetLooping */ }; @@ -69841,8 +69839,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_AudioBufferRef = ma_audio_buffer_ref__data_source_on_get_data_format, ma_audio_buffer_ref__data_source_on_get_cursor, ma_audio_buffer_ref__data_source_on_get_length, - NULL, /* onSetLooping */ - 0 + NULL /* onSetLooping */ }; MA_API ma_result ma_audio_buffer_ref_init(ma_format format, ma_uint32 channels, ma_uint32 sampleRate, const void* pData, ma_uint64 sizeInFrames, ma_audio_buffer_ref* pAudioBufferRef) @@ -70534,8 +70531,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_PagedAudioBuffer = ma_paged_audio_buffer__data_source_on_get_data_format, ma_paged_audio_buffer__data_source_on_get_cursor, ma_paged_audio_buffer__data_source_on_get_length, - NULL, /* onSetLooping */ - 0 + NULL /* onSetLooping */ }; MA_API ma_result ma_paged_audio_buffer_init(const ma_paged_audio_buffer_config* pConfig, ma_paged_audio_buffer* pPagedAudioBuffer) @@ -72722,8 +72718,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_WAV = ma_wav_ds_get_data_format, ma_wav_ds_get_cursor, ma_wav_ds_get_length, - NULL, /* onSetLooping */ - 0 + NULL /* onSetLooping */ }; @@ -73321,8 +73316,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_FLAC = ma_flac_ds_get_data_format, ma_flac_ds_get_cursor, ma_flac_ds_get_length, - NULL, /* onSetLooping */ - 0 + NULL /* onSetLooping */ }; @@ -73869,8 +73863,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_MP3 = ma_mp3_ds_get_data_format, ma_mp3_ds_get_cursor, ma_mp3_ds_get_length, - NULL, /* onSetLooping */ - 0 + NULL /* onSetLooping */ }; @@ -74484,8 +74477,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_stbvorbis = ma_stbvorbis_ds_get_data_format, ma_stbvorbis_ds_get_cursor, ma_stbvorbis_ds_get_length, - NULL, /* onSetLooping */ - 0 + NULL /* onSetLooping */ }; @@ -75697,8 +75689,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_Decoder = ma_decoder__data_source_on_get_data_format, ma_decoder__data_source_on_get_cursor, ma_decoder__data_source_on_get_length, - NULL, /* onSetLooping */ - 0 + NULL /* onSetLooping */ }; static ma_result ma_decoder__preinit(ma_decoder_read_proc onRead, ma_decoder_seek_proc onSeek, ma_decoder_tell_proc onTell, void* pUserData, const ma_decoder_config* pConfig, ma_decoder* pDecoder) @@ -77150,8 +77141,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_Waveform = ma_waveform__data_source_on_get_data_format, ma_waveform__data_source_on_get_cursor, NULL, /* onGetLength. There's no notion of a length in waveforms. */ - NULL, /* onSetLooping */ - 0 + NULL /* onSetLooping */ }; MA_API ma_result ma_waveform_init(const ma_waveform_config* pConfig, ma_waveform* pWaveform) @@ -77722,8 +77712,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_Noise = ma_noise__data_source_on_get_data_format, NULL, /* onGetCursor. No notion of a cursor for noise. */ NULL, /* onGetLength. No notion of a length for noise. */ - NULL, /* onSetLooping */ - 0 + NULL /* onSetLooping */ }; @@ -80080,8 +80069,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_ResourceManagerDataBuffer = ma_resource_manager_data_buffer_cb__get_data_format, ma_resource_manager_data_buffer_cb__get_cursor_in_pcm_frames, ma_resource_manager_data_buffer_cb__get_length_in_pcm_frames, - ma_resource_manager_data_buffer_cb__set_looping, - 0 + ma_resource_manager_data_buffer_cb__set_looping }; static ma_result ma_resource_manager_data_buffer_init_ex_internal(ma_resource_manager* pResourceManager, const ma_resource_manager_data_source_config* pConfig, ma_uint32 hashedName32, ma_resource_manager_data_buffer* pDataBuffer) @@ -80827,8 +80815,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_ResourceManagerDataStream = ma_resource_manager_data_stream_cb__get_data_format, ma_resource_manager_data_stream_cb__get_cursor_in_pcm_frames, ma_resource_manager_data_stream_cb__get_length_in_pcm_frames, - ma_resource_manager_data_stream_cb__set_looping, - 0 /*MA_DATA_SOURCE_SELF_MANAGED_RANGE_AND_LOOP_POINT*/ + ma_resource_manager_data_stream_cb__set_looping }; static void ma_resource_manager_data_stream_set_absolute_cursor(ma_resource_manager_data_stream* pDataStream, ma_uint64 absoluteCursor) @@ -82521,8 +82508,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_NodeGraph = ma_node_graph_data_source__on_get_data_format, NULL, /* onGetCursor */ NULL, /* onGetLength */ - NULL, /* onSetLooping */ - 0 + NULL /* onSetLooping */ };