Hook up ATRAC3 too

This commit is contained in:
Henrik Rydgård committed 2024-04-11 14:39:59 +02:00
1 parent 8fbc4a3379
commit c6c67695b1
5 files changed
+44 -29

No files matched your search

+2 -1
View File
@@ -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);
}
}