mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Move low level atrac3 audio WARN_LOG to sceAtracLowLevelInitDecoder
This commit is contained in:
parent
ff8c15eafd
commit
c41ac3659f
1 changed files with 2 additions and 3 deletions
|
@ -1353,6 +1353,7 @@ int sceAtracLowLevelInitDecoder(int atracID, u32 paramsAddr)
|
|||
atrac->CleanStuff();
|
||||
#ifdef USE_FFMPEG
|
||||
if (atrac->codeType == PSP_MODE_AT_3) {
|
||||
WARN_LOG(HLE, "This is an atrac3 audio (low level)");
|
||||
int headersize = sizeof(at3Header);
|
||||
initAT3Decoder(atrac);
|
||||
atrac->firstSampleoffset = headersize;
|
||||
|
@ -1455,9 +1456,7 @@ int sceAtracLowLevelDecode(int atracID, u32 sourceAddr, u32 sourceBytesConsumedA
|
|||
atrac->first.size = headersize + atrac->atracBytesPerFrame;
|
||||
atrac->first.fileoffset = atrac->first.size;
|
||||
addAtrac3Audio(atrac->data_buf, atrac->atracChannels == 2 ? atrac->first.size : atrac->first.filesize, atracID);
|
||||
} else if (atrac->codeType == PSP_MODE_AT_3) {
|
||||
WARN_LOG(HLE, "This is an atrac3 audio (low level)");
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
audioEngine *engine = getaudioEngineByID(atracID);
|
||||
|
|
Loading…
Add table
Reference in a new issue