Add sample rate field to AAC decoder (#5195)

* Add sample rate field to AAC decoder

* Fix TODO comment

* Remove unneeded conversion
This commit is contained in:
xperia64
2020-04-21 21:34:50 -04:00
committed by GitHub
parent 8b43dff849
commit 38c3c9c74b
6 changed files with 47 additions and 1 deletions

View File

@ -175,6 +175,7 @@ std::optional<BinaryResponse> FDKDecoder::Impl::Decode(const BinaryRequest& requ
// get the stream information
stream_info = aacDecoder_GetStreamInfo(decoder);
// fill the stream information for binary response
response.sample_rate = GetSampleRateEnum(stream_info->sampleRate);
response.num_channels = stream_info->aacNumChannels;
response.num_samples = stream_info->frameSize;
// fill the output