int64_t MP3Codec::Seek(int64_t iSeekTime) { // calculate our offset to seek to in the file m_lastByteOffset = GetByteOffset(0.001f * iSeekTime); m_file.Seek(m_lastByteOffset, SEEK_SET); FlushDecoder(); return iSeekTime; }
void Memory::WriteChar(int* address, char value) { auto line = ReadCacheLine(address); line.address |= DIRTYMASK; line.c_data[GetByteOffset(address)] = value; Write(address, line); }
char Memory::ReadChar(int* address) { return ReadCacheLine(address).c_data[GetByteOffset(address)]; }
byte Memory::ReadByte(int* address) { return ReadCacheLine(address).b_data[GetByteOffset(address)]; }