mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-11 10:24:43 +00:00
fix for AAC audio playing
This commit is contained in:
parent
c03e591ecd
commit
17174d0d24
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user