diff --git a/miniaudio.h b/miniaudio.h index 3e94a18f..d1ddb1f7 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -75972,11 +75972,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.pVTable = &ma_gDataSourceVTable_Decoder;