|
@@ -4589,12 +4589,16 @@ static inline void process_audio_source_tick(obs_source_t *source,
|
|
|
void obs_source_audio_render(obs_source_t *source, uint32_t mixers,
|
|
|
size_t channels, size_t sample_rate, size_t size)
|
|
|
{
|
|
|
- if (!source->audio_output_buf[0][0] || !source->context.data) {
|
|
|
+ if (!source->audio_output_buf[0][0]) {
|
|
|
source->audio_pending = true;
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (source->info.audio_render) {
|
|
|
+ if (!source->context.data) {
|
|
|
+ source->audio_pending = true;
|
|
|
+ return;
|
|
|
+ }
|
|
|
custom_audio_render(source, mixers, channels, sample_rate);
|
|
|
return;
|
|
|
}
|