mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
work around type redefinition errors in SDL_immdevice.h
This commit is contained in:
@@ -26,20 +26,20 @@
|
|||||||
#include <mmdeviceapi.h>
|
#include <mmdeviceapi.h>
|
||||||
#include <mmreg.h>
|
#include <mmreg.h>
|
||||||
|
|
||||||
typedef struct SDL_AudioDevice SDL_AudioDevice; // this is defined in src/audio/SDL_sysaudio.h
|
struct SDL_AudioDevice; // defined in src/audio/SDL_sysaudio.h
|
||||||
|
|
||||||
typedef struct SDL_IMMDevice_callbacks
|
typedef struct SDL_IMMDevice_callbacks
|
||||||
{
|
{
|
||||||
void (*audio_device_disconnected)(SDL_AudioDevice *device);
|
void (*audio_device_disconnected)(struct SDL_AudioDevice *device);
|
||||||
void (*default_audio_device_changed)(SDL_AudioDevice *new_default_device);
|
void (*default_audio_device_changed)(struct SDL_AudioDevice *new_default_device);
|
||||||
} SDL_IMMDevice_callbacks;
|
} SDL_IMMDevice_callbacks;
|
||||||
|
|
||||||
bool SDL_IMMDevice_Init(const SDL_IMMDevice_callbacks *callbacks);
|
bool SDL_IMMDevice_Init(const SDL_IMMDevice_callbacks *callbacks);
|
||||||
void SDL_IMMDevice_Quit(void);
|
void SDL_IMMDevice_Quit(void);
|
||||||
bool SDL_IMMDevice_Get(SDL_AudioDevice *device, IMMDevice **immdevice, bool recording);
|
bool SDL_IMMDevice_Get(struct SDL_AudioDevice *device, IMMDevice **immdevice, bool recording);
|
||||||
void SDL_IMMDevice_EnumerateEndpoints(SDL_AudioDevice **default_playback, SDL_AudioDevice **default_recording);
|
void SDL_IMMDevice_EnumerateEndpoints(struct SDL_AudioDevice **default_playback, struct SDL_AudioDevice **default_recording);
|
||||||
LPGUID SDL_IMMDevice_GetDirectSoundGUID(SDL_AudioDevice *device);
|
LPGUID SDL_IMMDevice_GetDirectSoundGUID(struct SDL_AudioDevice *device);
|
||||||
LPCWSTR SDL_IMMDevice_GetDevID(SDL_AudioDevice *device);
|
LPCWSTR SDL_IMMDevice_GetDevID(struct SDL_AudioDevice *device);
|
||||||
void SDL_IMMDevice_FreeDeviceHandle(SDL_AudioDevice *device);
|
void SDL_IMMDevice_FreeDeviceHandle(struct SDL_AudioDevice *device);
|
||||||
|
|
||||||
#endif // SDL_IMMDEVICE_H
|
#endif // SDL_IMMDEVICE_H
|
||||||
|
Reference in New Issue
Block a user