17fa004104
When an encoder has been removed (such as CoreAudio) and the audio bitrates currently configured no longer are available to the current audio encoders anymore, it would cause GetAACEncoderForBitrate to return false with no encoder available. To fix the issue, instead just choose the closest bitrate relative to the current bitrate (rounded up).
8 lines
196 B
C++
8 lines
196 B
C++
#include <obs.hpp>
|
|
|
|
#include <map>
|
|
|
|
const std::map<int, const char*> &GetAACEncoderBitrateMap();
|
|
const char *GetAACEncoderForBitrate(int bitrate);
|
|
int FindClosestAvailableAACBitrate(int bitrate);
|