[APU] Set first frame offset for next buffer + Note about edgecase

This commit is contained in:
Gliniak
2022-12-13 22:57:36 +01:00
parent e00feb7b0f
commit b2dd489151
2 changed files with 26 additions and 0 deletions

View File

@@ -196,6 +196,10 @@ class XmaContext {
void Decode(XMA_CONTEXT_DATA* data);
int PrepareDecoder(uint8_t* packet, int sample_rate, bool is_two_channel);
// This method should be used ONLY when we're at the last packet of the stream
// and we want to find offset in next buffer
uint32_t GetPacketFirstFrameOffset(const XMA_CONTEXT_DATA* data);
Memory* memory_ = nullptr;
uint32_t id_ = 0;