mirror of
https://github.com/holub/mame
synced 2025-04-19 15:11:37 +03:00
XAudio2 Bug fix - forgot to initialize buffers and no need to init COM
This commit is contained in:
parent
d7295a96d7
commit
9a6eb2250b
@ -306,8 +306,6 @@ int sound_xaudio2::init(osd_options const &options)
|
||||
{
|
||||
HRESULT result = S_OK;
|
||||
|
||||
HR_IGNORE(CoInitializeEx(NULL, COINITBASE_MULTITHREADED));
|
||||
|
||||
// Create the IXAudio2 object
|
||||
IXAudio2 *temp_xaudio2 = nullptr;
|
||||
HR_RET1(xaudio2_create(&temp_xaudio2));
|
||||
@ -331,6 +329,9 @@ int sound_xaudio2::init(osd_options const &options)
|
||||
m_xAudio2->SetDebugConfiguration(&debugConfig);
|
||||
#endif
|
||||
|
||||
// Create the buffers
|
||||
create_buffers(format);
|
||||
|
||||
// Initialize our events
|
||||
m_hEventBufferCompleted = CreateEvent(NULL, FALSE, FALSE, NULL);
|
||||
m_hEventDataAvailable = CreateEvent(NULL, FALSE, FALSE, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user