fix for AAC audio playing

This commit is contained in:
kaienfr 2014-03-29 19:36:53 +01:00
parent c03e591ecd
commit 17174d0d24

View File

@ -88,6 +88,7 @@ SimpleAudio::SimpleAudio(int audioType)
}
codecCtx_->channels = 2;
codecCtx_->channel_layout = AV_CH_LAYOUT_STEREO;
codecCtx_->sample_rate = 44100;
// Open codec
AVDictionary *opts = 0;
if (avcodec_open2(codecCtx_, codec_, &opts) < 0) {
@ -129,6 +130,7 @@ SimpleAudio::SimpleAudio(u32 ctxPtr, int audioType)
}
codecCtx_->channels = 2;
codecCtx_->channel_layout = AV_CH_LAYOUT_STEREO;
codecCtx_->sample_rate = 44100;
// Open codec
AVDictionary *opts = 0;
if (avcodec_open2(codecCtx_, codec_, &opts) < 0) {