#if defined(NXDK) /* <-- Add other Xbox compiler toolchains here, and then add a toolchain-specific define in case we need to discriminate between them later. */
/* Some backends are only supported on certain platforms. */
#if defined(MA_WIN32)
#if defined(MA_WIN32) && !defined(MA_XBOX)
#define MA_SUPPORT_WASAPI
#if defined(MA_WIN32_DESKTOP) /* DirectSound and WinMM backends are only supported on desktops. */
...
...
@@ -3696,6 +3728,7 @@ struct ma_context
ma_procsnd_pcm_hw_params_set_rate_resample;
ma_procsnd_pcm_hw_params_set_rate;
ma_procsnd_pcm_hw_params_set_rate_near;
ma_procsnd_pcm_hw_params_set_rate_minmax;
ma_procsnd_pcm_hw_params_set_buffer_size_near;
ma_procsnd_pcm_hw_params_set_periods_near;
ma_procsnd_pcm_hw_params_set_access;
...
...
@@ -4256,6 +4289,7 @@ struct ma_device
/*AAudioStream**/ma_ptrpStreamPlayback;
/*AAudioStream**/ma_ptrpStreamCapture;
ma_mutexrerouteLock;
ma_atomic_bool32isTearingDown;
ma_aaudio_usageusage;
ma_aaudio_content_typecontentType;
ma_aaudio_input_presetinputPreset;
...
...
@@ -7525,7 +7559,7 @@ typedef struct
ma_log*pLog;/* When set to NULL, will use the context's log. */
ma_uint32listenerCount;/* Must be between 1 and MA_ENGINE_MAX_LISTENERS. */
ma_uint32channels;/* The number of channels to use when mixing and spatializing. When set to 0, will use the native channel count of the device. */
ma_uint32sampleRate;/* The sample rate. When set to 0 will use the native channel count of the device. */
ma_uint32sampleRate;/* The sample rate. When set to 0 will use the native sample rate of the device. */
ma_uint32periodSizeInFrames;/* If set to something other than 0, updates will always be exactly this size. The underlying device may be a different size, but from the perspective of the mixer that won't matter.*/
ma_uint32periodSizeInMilliseconds;/* Used if periodSizeInFrames is unset. */
ma_uint32gainSmoothTimeInFrames;/* The number of frames to interpolate the gain of spatialized sounds across. If set to 0, will use gainSmoothTimeInMilliseconds. */