mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-14 20:25:46 -04:00
MDEC: Only set DMA request when there is actually data to write
This commit is contained in:
@ -84,6 +84,7 @@ private:
|
||||
|
||||
void SoftReset();
|
||||
void UpdateStatusRegister();
|
||||
void UpdateDMARequest();
|
||||
|
||||
u32 ReadDataRegister();
|
||||
void WriteCommandRegister(u32 value);
|
||||
@ -106,6 +107,8 @@ private:
|
||||
DMA* m_dma = nullptr;
|
||||
|
||||
StatusRegister m_status = {};
|
||||
bool m_enable_dma_in = false;
|
||||
bool m_enable_dma_out = false;
|
||||
|
||||
// Even though the DMA is in words, we access the FIFO as halfwords.
|
||||
InlineFIFOQueue<u16, DATA_IN_FIFO_SIZE> m_data_in_fifo;
|
||||
|
Reference in New Issue
Block a user