隐藏细节代码

This commit is contained in:
xiongziliang 2020-05-11 23:34:57 +08:00
parent 70e9a20352
commit 6356ffcb4f
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,8 @@
namespace mediakit{ namespace mediakit{
unsigned const samplingFrequencyTable[16] = { 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350, 0, 0, 0 };
class AdtsHeader{ class AdtsHeader{
public: public:
unsigned int syncword = 0; //12 bslbf 同步字The bit string 1111 1111 1111说明一个ADTS帧的开始 unsigned int syncword = 0; //12 bslbf 同步字The bit string 1111 1111 1111说明一个ADTS帧的开始

View File

@ -19,7 +19,6 @@ namespace mediakit{
class AACFrame; class AACFrame;
unsigned const samplingFrequencyTable[16] = { 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350, 0, 0, 0 };
string makeAacConfig(const uint8_t *hex); string makeAacConfig(const uint8_t *hex);
void dumpAacConfig(const string &config, int length, uint8_t *out); void dumpAacConfig(const string &config, int length, uint8_t *out);
void parseAacConfig(const string &config, int &samplerate, int &channels); void parseAacConfig(const string &config, int &samplerate, int &channels);