mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Revert "Enforce a read callback to be specified for decoders."
This reverts commit 52d09d3688.
This commit is contained in:
@@ -66237,11 +66237,6 @@ static ma_result ma_decoder__preinit(ma_decoder_read_proc onRead, ma_decoder_see
|
||||
|
||||
MA_ZERO_OBJECT(pDecoder);
|
||||
|
||||
/* A read callback must be available. */
|
||||
if (onRead == NULL) {
|
||||
return MA_INVALID_ARGS;
|
||||
}
|
||||
|
||||
dataSourceConfig = ma_data_source_config_init();
|
||||
dataSourceConfig.vtable = &g_ma_decoder_data_source_vtable;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user