mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 02:59:49 +01:00
Correct the dataOff member of atrac context.
This commit is contained in:
1 parent
ac1fcdb269
commit
6b6bf3f8e6
1 file changed
+3
-1
@@ -1663,7 +1663,7 @@ void _AtracGenarateContext(Atrac *atrac, SceAtracId *context) {
|
||||
context->info.samplesPerChan = (atrac->codecType == PSP_MODE_AT_3_PLUS ? ATRAC3PLUS_MAX_SAMPLES : ATRAC3_MAX_SAMPLES);
|
||||
context->info.sampleSize = atrac->atracBytesPerFrame;
|
||||
context->info.numChan = atrac->atracChannels;
|
||||
context->info.dataOff = atrac->firstSampleoffset;
|
||||
context->info.dataOff = atrac->dataOff;
|
||||
context->info.endSample = atrac->endSample;
|
||||
context->info.dataEnd = atrac->first.filesize;
|
||||
context->info.curOff = atrac->first.size;
|
||||
@@ -1815,6 +1815,7 @@ int sceAtracLowLevelInitDecoder(int atracID, u32 paramsAddr) {
|
||||
}
|
||||
|
||||
atrac->firstSampleoffset = headersize;
|
||||
atrac->dataOff = headersize;
|
||||
atrac->first.size = headersize;
|
||||
atrac->first.filesize = headersize + atrac->atracBytesPerFrame;
|
||||
atrac->data_buf = new u8[atrac->first.filesize];
|
||||
@@ -1839,6 +1840,7 @@ int sceAtracLowLevelInitDecoder(int atracID, u32 paramsAddr) {
|
||||
}
|
||||
|
||||
atrac->firstSampleoffset = headersize;
|
||||
atrac->dataOff = headersize;
|
||||
atrac->first.size = headersize;
|
||||
atrac->first.filesize = headersize + atrac->atracBytesPerFrame;
|
||||
atrac->data_buf = new u8[atrac->first.filesize];
|
||||
|
||||
Reference in new issue
Block a user