02e5410381
Audio ids were being stored in a map with const char pointers, thus they were destroyed when call_once finished. To fix this, store std::strings instead.
10 lines
210 B
C++
10 lines
210 B
C++
#pragma once
|
|
|
|
#include <obs.hpp>
|
|
|
|
#include <map>
|
|
|
|
const std::map<int, std::string> &GetAACEncoderBitrateMap();
|
|
const char *GetAACEncoderForBitrate(int bitrate);
|
|
int FindClosestAvailableAACBitrate(int bitrate);
|