mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-30 04:04:05 +02:00
API CHANGE: Remove the flags member from ma_data_source_vtable.
This commit is contained in:
@@ -55,8 +55,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_libopus =
|
|||||||
ma_libopus_ds_get_data_format,
|
ma_libopus_ds_get_data_format,
|
||||||
ma_libopus_ds_get_cursor,
|
ma_libopus_ds_get_cursor,
|
||||||
ma_libopus_ds_get_length,
|
ma_libopus_ds_get_length,
|
||||||
NULL, /* onSetLooping */
|
NULL /* onSetLooping */
|
||||||
0 /* flags */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -58,8 +58,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_libvorbis =
|
|||||||
ma_libvorbis_ds_get_data_format,
|
ma_libvorbis_ds_get_data_format,
|
||||||
ma_libvorbis_ds_get_cursor,
|
ma_libvorbis_ds_get_cursor,
|
||||||
ma_libvorbis_ds_get_length,
|
ma_libvorbis_ds_get_length,
|
||||||
NULL, /* onSetLooping */
|
NULL /* onSetLooping */
|
||||||
0 /* flags */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+13
-27
@@ -6230,7 +6230,6 @@ typedef struct
|
|||||||
ma_result (* onGetCursor )(ma_data_source* pDataSource, ma_uint64* pCursor);
|
ma_result (* onGetCursor )(ma_data_source* pDataSource, ma_uint64* pCursor);
|
||||||
ma_result (* onGetLength )(ma_data_source* pDataSource, ma_uint64* pLength);
|
ma_result (* onGetLength )(ma_data_source* pDataSource, ma_uint64* pLength);
|
||||||
ma_result (* onSetLooping )(ma_data_source* pDataSource, ma_bool32 isLooping);
|
ma_result (* onSetLooping )(ma_data_source* pDataSource, ma_bool32 isLooping);
|
||||||
ma_uint32 flags;
|
|
||||||
} ma_data_source_vtable;
|
} ma_data_source_vtable;
|
||||||
|
|
||||||
typedef ma_data_source* (* ma_data_source_get_next_proc)(ma_data_source* pDataSource);
|
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,
|
ma_audio_ring_buffer__data_source_on_get_data_format,
|
||||||
NULL, /* No notion of a cursor. */
|
NULL, /* No notion of a cursor. */
|
||||||
ma_audio_ring_buffer__data_source_on_get_length,
|
ma_audio_ring_buffer__data_source_on_get_length,
|
||||||
NULL, /* onSetLooping */
|
NULL /* onSetLooping */
|
||||||
0
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -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_data_format,
|
||||||
ma_audio_buffer_ref__data_source_on_get_cursor,
|
ma_audio_buffer_ref__data_source_on_get_cursor,
|
||||||
ma_audio_buffer_ref__data_source_on_get_length,
|
ma_audio_buffer_ref__data_source_on_get_length,
|
||||||
NULL, /* onSetLooping */
|
NULL /* onSetLooping */
|
||||||
0
|
|
||||||
};
|
};
|
||||||
|
|
||||||
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)
|
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_data_format,
|
||||||
ma_paged_audio_buffer__data_source_on_get_cursor,
|
ma_paged_audio_buffer__data_source_on_get_cursor,
|
||||||
ma_paged_audio_buffer__data_source_on_get_length,
|
ma_paged_audio_buffer__data_source_on_get_length,
|
||||||
NULL, /* onSetLooping */
|
NULL /* onSetLooping */
|
||||||
0
|
|
||||||
};
|
};
|
||||||
|
|
||||||
MA_API ma_result ma_paged_audio_buffer_init(const ma_paged_audio_buffer_config* pConfig, ma_paged_audio_buffer* pPagedAudioBuffer)
|
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_data_format,
|
||||||
ma_wav_ds_get_cursor,
|
ma_wav_ds_get_cursor,
|
||||||
ma_wav_ds_get_length,
|
ma_wav_ds_get_length,
|
||||||
NULL, /* onSetLooping */
|
NULL /* onSetLooping */
|
||||||
0
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -73321,8 +73316,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_FLAC =
|
|||||||
ma_flac_ds_get_data_format,
|
ma_flac_ds_get_data_format,
|
||||||
ma_flac_ds_get_cursor,
|
ma_flac_ds_get_cursor,
|
||||||
ma_flac_ds_get_length,
|
ma_flac_ds_get_length,
|
||||||
NULL, /* onSetLooping */
|
NULL /* onSetLooping */
|
||||||
0
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -73869,8 +73863,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_MP3 =
|
|||||||
ma_mp3_ds_get_data_format,
|
ma_mp3_ds_get_data_format,
|
||||||
ma_mp3_ds_get_cursor,
|
ma_mp3_ds_get_cursor,
|
||||||
ma_mp3_ds_get_length,
|
ma_mp3_ds_get_length,
|
||||||
NULL, /* onSetLooping */
|
NULL /* onSetLooping */
|
||||||
0
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -74484,8 +74477,7 @@ static ma_data_source_vtable ma_gDataSourceVTable_stbvorbis =
|
|||||||
ma_stbvorbis_ds_get_data_format,
|
ma_stbvorbis_ds_get_data_format,
|
||||||
ma_stbvorbis_ds_get_cursor,
|
ma_stbvorbis_ds_get_cursor,
|
||||||
ma_stbvorbis_ds_get_length,
|
ma_stbvorbis_ds_get_length,
|
||||||
NULL, /* onSetLooping */
|
NULL /* onSetLooping */
|
||||||
0
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -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_data_format,
|
||||||
ma_decoder__data_source_on_get_cursor,
|
ma_decoder__data_source_on_get_cursor,
|
||||||
ma_decoder__data_source_on_get_length,
|
ma_decoder__data_source_on_get_length,
|
||||||
NULL, /* onSetLooping */
|
NULL /* onSetLooping */
|
||||||
0
|
|
||||||
};
|
};
|
||||||
|
|
||||||
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)
|
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_data_format,
|
||||||
ma_waveform__data_source_on_get_cursor,
|
ma_waveform__data_source_on_get_cursor,
|
||||||
NULL, /* onGetLength. There's no notion of a length in waveforms. */
|
NULL, /* onGetLength. There's no notion of a length in waveforms. */
|
||||||
NULL, /* onSetLooping */
|
NULL /* onSetLooping */
|
||||||
0
|
|
||||||
};
|
};
|
||||||
|
|
||||||
MA_API ma_result ma_waveform_init(const ma_waveform_config* pConfig, ma_waveform* pWaveform)
|
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,
|
ma_noise__data_source_on_get_data_format,
|
||||||
NULL, /* onGetCursor. No notion of a cursor for noise. */
|
NULL, /* onGetCursor. No notion of a cursor for noise. */
|
||||||
NULL, /* onGetLength. No notion of a length for noise. */
|
NULL, /* onGetLength. No notion of a length for noise. */
|
||||||
NULL, /* onSetLooping */
|
NULL /* onSetLooping */
|
||||||
0
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -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_data_format,
|
||||||
ma_resource_manager_data_buffer_cb__get_cursor_in_pcm_frames,
|
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__get_length_in_pcm_frames,
|
||||||
ma_resource_manager_data_buffer_cb__set_looping,
|
ma_resource_manager_data_buffer_cb__set_looping
|
||||||
0
|
|
||||||
};
|
};
|
||||||
|
|
||||||
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)
|
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_data_format,
|
||||||
ma_resource_manager_data_stream_cb__get_cursor_in_pcm_frames,
|
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__get_length_in_pcm_frames,
|
||||||
ma_resource_manager_data_stream_cb__set_looping,
|
ma_resource_manager_data_stream_cb__set_looping
|
||||||
0 /*MA_DATA_SOURCE_SELF_MANAGED_RANGE_AND_LOOP_POINT*/
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static void ma_resource_manager_data_stream_set_absolute_cursor(ma_resource_manager_data_stream* pDataStream, ma_uint64 absoluteCursor)
|
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,
|
ma_node_graph_data_source__on_get_data_format,
|
||||||
NULL, /* onGetCursor */
|
NULL, /* onGetCursor */
|
||||||
NULL, /* onGetLength */
|
NULL, /* onGetLength */
|
||||||
NULL, /* onSetLooping */
|
NULL /* onSetLooping */
|
||||||
0
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user