diff --git a/Source/Project64/Plugins/Audio Plugin.cpp b/Source/Project64/Plugins/Audio Plugin.cpp index 7b4d6faee..85b86b77f 100644 --- a/Source/Project64/Plugins/Audio Plugin.cpp +++ b/Source/Project64/Plugins/Audio Plugin.cpp @@ -179,7 +179,6 @@ bool CAudioPlugin::Initiate ( CN64System * System, CMainGui * RenderWindow ) { Sleep(100); return m_Initilized; } - m_StatusReg = 0; //Send Initilization information to the DLL Info.hwnd = (HWND)RenderWindow->m_hMainWindow; @@ -193,7 +192,7 @@ bool CAudioPlugin::Initiate ( CN64System * System, CMainGui * RenderWindow ) { Info.AI__DRAM_ADDR_REG = &_Reg->AI_DRAM_ADDR_REG; Info.AI__LEN_REG = &_Reg->AI_LEN_REG; Info.AI__CONTROL_REG = &_Reg->AI_CONTROL_REG; - Info.AI__STATUS_REG = &m_StatusReg; + Info.AI__STATUS_REG = &_Reg->AI_STATUS_REG; Info.AI__DACRATE_REG = &_Reg->AI_DACRATE_REG; Info.AI__BITRATE_REG = &_Reg->AI_BITRATE_REG; Info.CheckInterrupts = DummyCheckInterrupts; diff --git a/Source/Project64/Plugins/Audio Plugin.h b/Source/Project64/Plugins/Audio Plugin.h index 2f1b6b107..086cf9923 100644 --- a/Source/Project64/Plugins/Audio Plugin.h +++ b/Source/Project64/Plugins/Audio Plugin.h @@ -25,8 +25,6 @@ private: bool m_Initilized, m_RomOpen; void * m_hAudioThread; PLUGIN_INFO m_PluginInfo; - - DWORD m_StatusReg; void Init ( const char * FileName ); void UnloadPlugin ( void );