Previous 199869 Revisions Next

r32074 Friday 12th September, 2014 at 02:51:50 UTC by R. Belmont
SDL: -sound dsound now works with SDL (nw)
[src/osd/modules/sound]direct_sound.c

trunk/src/osd/modules/sound/direct_sound.c
r32073r32074
3131#else
3232#include <SDL/SDL_syswm.h>
3333#endif
34#include "../../sdl/window.h"
3435#else
3536#include "winmain.h"
3637#include "window.h"
r32073r32074
248249   SDL_SysWMinfo wminfo;
249250   SDL_VERSION(&wminfo.version);
250251   SDL_GetWindowWMInfo(sdl_window_list->sdl_window, &wminfo);
251   result = IDirectSound_SetCooperativeLevel(dsound, wminfo.win.window, DSSCL_PRIORITY);
252   result = IDirectSound_SetCooperativeLevel(dsound, wminfo.info.win.window, DSSCL_PRIORITY);
252253   #else
253254   result = IDirectSound_SetCooperativeLevel(dsound, win_window_list->m_hwnd, DSSCL_PRIORITY);
254255   #endif

Previous 199869 Revisions Next


© 1997-2024 The MAME Team