mirror of
https://github.com/holub/mame
synced 2025-06-07 13:23:50 +03:00
SDL: -sound dsound now works with SDL (nw)
This commit is contained in:
parent
1527f5ca82
commit
8f2f9485d9
@ -31,6 +31,7 @@
|
|||||||
#else
|
#else
|
||||||
#include <SDL/SDL_syswm.h>
|
#include <SDL/SDL_syswm.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include "../../sdl/window.h"
|
||||||
#else
|
#else
|
||||||
#include "winmain.h"
|
#include "winmain.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
@ -248,7 +249,7 @@ HRESULT sound_direct_sound::dsound_init()
|
|||||||
SDL_SysWMinfo wminfo;
|
SDL_SysWMinfo wminfo;
|
||||||
SDL_VERSION(&wminfo.version);
|
SDL_VERSION(&wminfo.version);
|
||||||
SDL_GetWindowWMInfo(sdl_window_list->sdl_window, &wminfo);
|
SDL_GetWindowWMInfo(sdl_window_list->sdl_window, &wminfo);
|
||||||
result = IDirectSound_SetCooperativeLevel(dsound, wminfo.win.window, DSSCL_PRIORITY);
|
result = IDirectSound_SetCooperativeLevel(dsound, wminfo.info.win.window, DSSCL_PRIORITY);
|
||||||
#else
|
#else
|
||||||
result = IDirectSound_SetCooperativeLevel(dsound, win_window_list->m_hwnd, DSSCL_PRIORITY);
|
result = IDirectSound_SetCooperativeLevel(dsound, win_window_list->m_hwnd, DSSCL_PRIORITY);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user