mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Dreamcast: Fix an error with device enumeration.
This commit is contained in:
@@ -47630,6 +47630,7 @@ static ma_result ma_context_enumerate_devices__dreamcast(ma_context* pContext, m
|
||||
{
|
||||
ma_context_state_dreamcast* pContextStateDreamcast = ma_context_get_backend_state__dreamcast(pContext);
|
||||
ma_device_info deviceInfo;
|
||||
ma_device_enumeration_result enumerationResult;
|
||||
|
||||
(void)pContextStateDreamcast;
|
||||
|
||||
@@ -47643,6 +47644,12 @@ static ma_result ma_context_enumerate_devices__dreamcast(ma_context* pContext, m
|
||||
ma_device_info_add_native_data_format(&deviceInfo, ma_format_s16, 1, 2, 11025, 44100);
|
||||
ma_device_info_add_native_data_format(&deviceInfo, ma_format_u8, 1, 2, 11025, 44100);
|
||||
|
||||
/* The return value of the callback does not matter here because we're only enumerating a single device, but we're putting the checks down anyway for completeness. */
|
||||
enumerationResult = callback(ma_device_type_playback, &deviceInfo, pCallbackUserData);
|
||||
if (enumerationResult == MA_DEVICE_ENUMERATION_ABORT) {
|
||||
return MA_SUCCESS;
|
||||
}
|
||||
|
||||
return MA_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user