mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Hook up ATRAC3 too
This commit is contained in:
1 parent
8fbc4a3379
commit
c6c67695b1
5 files changed
+44
-29
No files matched your search
@@ -144,14 +144,15 @@ private:
|
||||
bool codecOpen_;
|
||||
};
|
||||
|
||||
// TODO: This should also be able to create other types of decoders.
|
||||
AudioDecoder *CreateAudioDecoder(PSPAudioType audioType, int sampleRateHz, int channels) {
|
||||
switch (audioType) {
|
||||
case PSP_CODEC_MP3:
|
||||
return new MiniMp3Audio();
|
||||
case PSP_CODEC_AT3:
|
||||
case PSP_CODEC_AT3PLUS:
|
||||
return CreateAtrac3Audio(audioType);
|
||||
default:
|
||||
// Only AAC falls back to FFMPEG now.
|
||||
return new SimpleAudio(audioType, sampleRateHz, channels);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user