Best way to grap audio input format

DMOrigin

New Member
I'm writing an input audio filter plugin for obs studio. But I need the audio format of the input stream, that I get it from the callback function "obs_source_info::filter_audio". Currently I use the function call "audio_output_get_info(obs_get_audio())". But it's the audio output information. So... is the output format the same as the input format? It seems so. But I'm not sure. Therefore... what is the best way to get the input audio format?
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Audio filters always use the OBS audio format/sample rate (meaning the audio data after the input has been converted).
 
Top