Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
3f362951
Commit
3f362951
authored
Jul 27, 2022
by
jongwoon-100
Committed by
David Reid
Jul 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mismatched attributes of aaudio
parent
c3521aea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
34 deletions
+34
-34
miniaudio.h
miniaudio.h
+34
-34
No files found.
miniaudio.h
View file @
3f362951
...
@@ -6499,32 +6499,32 @@ typedef enum
...
@@ -6499,32 +6499,32 @@ typedef enum
typedef enum
typedef enum
{
{
ma_aaudio_usage_default = 0, /* Leaves the usage type unset. */
ma_aaudio_usage_default = 0, /* Leaves the usage type unset. */
ma_aaudio_usage_announcement, /* AAUDIO_SYSTEM_USAGE_ANNOUNCEMENT */
ma_aaudio_usage_media, /* AAUDIO_USAGE_MEDIA */
ma_aaudio_usage_emergency, /* AAUDIO_SYSTEM_USAGE_EMERGENCY */
ma_aaudio_usage_voice_communication, /* AAUDIO_USAGE_VOICE_COMMUNICATION */
ma_aaudio_usage_safety, /* AAUDIO_SYSTEM_USAGE_SAFETY */
ma_aaudio_usage_voice_communication_signalling, /* AAUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING */
ma_aaudio_usage_vehicle_status, /* AAUDIO_SYSTEM_USAGE_VEHICLE_STATUS */
ma_aaudio_usage_alarm, /* AAUDIO_USAGE_ALARM */
ma_aaudio_usage_alarm, /* AAUDIO_USAGE_ALARM */
ma_aaudio_usage_notification, /* AAUDIO_USAGE_NOTIFICATION */
ma_aaudio_usage_notification_ringtone, /* AAUDIO_USAGE_NOTIFICATION_RINGTONE */
ma_aaudio_usage_notification_event, /* AAUDIO_USAGE_NOTIFICATION_EVENT */
ma_aaudio_usage_assistance_accessibility, /* AAUDIO_USAGE_ASSISTANCE_ACCESSIBILITY */
ma_aaudio_usage_assistance_accessibility, /* AAUDIO_USAGE_ASSISTANCE_ACCESSIBILITY */
ma_aaudio_usage_assistance_navigation_guidance, /* AAUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE */
ma_aaudio_usage_assistance_navigation_guidance, /* AAUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE */
ma_aaudio_usage_assistance_sonification, /* AAUDIO_USAGE_ASSISTANCE_SONIFICATION */
ma_aaudio_usage_assistance_sonification, /* AAUDIO_USAGE_ASSISTANCE_SONIFICATION */
ma_aaudio_usage_assitant, /* AAUDIO_USAGE_ASSISTANT */
ma_aaudio_usage_game, /* AAUDIO_USAGE_GAME */
ma_aaudio_usage_game, /* AAUDIO_USAGE_GAME */
ma_aaudio_usage_media, /* AAUDIO_USAGE_MEDIA */
ma_aaudio_usage_assitant, /* AAUDIO_USAGE_ASSISTANT */
ma_aaudio_usage_notification, /* AAUDIO_USAGE_NOTIFICATION */
ma_aaudio_usage_emergency, /* AAUDIO_SYSTEM_USAGE_EMERGENCY */
ma_aaudio_usage_notification_event, /* AAUDIO_USAGE_NOTIFICATION_EVENT */
ma_aaudio_usage_safety, /* AAUDIO_SYSTEM_USAGE_SAFETY */
ma_aaudio_usage_notification_ringtone, /* AAUDIO_USAGE_NOTIFICATION_RINGTONE */
ma_aaudio_usage_vehicle_status, /* AAUDIO_SYSTEM_USAGE_VEHICLE_STATUS */
ma_aaudio_usage_voice_communication, /* AAUDIO_USAGE_VOICE_COMMUNICATION */
ma_aaudio_usage_announcement /* AAUDIO_SYSTEM_USAGE_ANNOUNCEMENT */
ma_aaudio_usage_voice_communication_signalling /* AAUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING */
} ma_aaudio_usage;
} ma_aaudio_usage;
/* AAudio content types. */
/* AAudio content types. */
typedef enum
typedef enum
{
{
ma_aaudio_content_type_default = 0, /* Leaves the content type unset. */
ma_aaudio_content_type_default = 0, /* Leaves the content type unset. */
ma_aaudio_content_type_
movie, /* AAUDIO_CONTENT_TYPE_MOVIE
*/
ma_aaudio_content_type_
speech, /* AAUDIO_CONTENT_TYPE_SPEECH
*/
ma_aaudio_content_type_music, /* AAUDIO_CONTENT_TYPE_MUSIC */
ma_aaudio_content_type_music, /* AAUDIO_CONTENT_TYPE_MUSIC */
ma_aaudio_content_type_
sonification, /* AAUDIO_CONTENT_TYPE_SONIFICATION
*/
ma_aaudio_content_type_
movie, /* AAUDIO_CONTENT_TYPE_MOVIE
*/
ma_aaudio_content_type_s
peech /* AAUDIO_CONTENT_TYPE_SPEECH
*/
ma_aaudio_content_type_s
onification /* AAUDIO_CONTENT_TYPE_SONIFICATION
*/
} ma_aaudio_content_type;
} ma_aaudio_content_type;
/* AAudio input presets. */
/* AAudio input presets. */
...
@@ -6533,9 +6533,9 @@ typedef enum
...
@@ -6533,9 +6533,9 @@ typedef enum
ma_aaudio_input_preset_default = 0, /* Leaves the input preset unset. */
ma_aaudio_input_preset_default = 0, /* Leaves the input preset unset. */
ma_aaudio_input_preset_generic, /* AAUDIO_INPUT_PRESET_GENERIC */
ma_aaudio_input_preset_generic, /* AAUDIO_INPUT_PRESET_GENERIC */
ma_aaudio_input_preset_camcorder, /* AAUDIO_INPUT_PRESET_CAMCORDER */
ma_aaudio_input_preset_camcorder, /* AAUDIO_INPUT_PRESET_CAMCORDER */
ma_aaudio_input_preset_unprocessed, /* AAUDIO_INPUT_PRESET_UNPROCESSED */
ma_aaudio_input_preset_voice_recognition, /* AAUDIO_INPUT_PRESET_VOICE_RECOGNITION */
ma_aaudio_input_preset_voice_recognition, /* AAUDIO_INPUT_PRESET_VOICE_RECOGNITION */
ma_aaudio_input_preset_voice_communication, /* AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION */
ma_aaudio_input_preset_voice_communication, /* AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION */
ma_aaudio_input_preset_unprocessed, /* AAUDIO_INPUT_PRESET_UNPROCESSED */
ma_aaudio_input_preset_voice_performance /* AAUDIO_INPUT_PRESET_VOICE_PERFORMANCE */
ma_aaudio_input_preset_voice_performance /* AAUDIO_INPUT_PRESET_VOICE_PERFORMANCE */
} ma_aaudio_input_preset;
} ma_aaudio_input_preset;
...
@@ -36011,22 +36011,22 @@ static ma_result ma_result_from_aaudio(ma_aaudio_result_t resultAA)
...
@@ -36011,22 +36011,22 @@ static ma_result ma_result_from_aaudio(ma_aaudio_result_t resultAA)
static ma_aaudio_usage_t ma_to_usage__aaudio(ma_aaudio_usage usage)
static ma_aaudio_usage_t ma_to_usage__aaudio(ma_aaudio_usage usage)
{
{
switch (usage) {
switch (usage) {
case ma_aaudio_usage_
announcement:
return MA_AAUDIO_USAGE_MEDIA;
case ma_aaudio_usage_
media:
return MA_AAUDIO_USAGE_MEDIA;
case ma_aaudio_usage_
emergency:
return MA_AAUDIO_USAGE_VOICE_COMMUNICATION;
case ma_aaudio_usage_
voice_communication:
return MA_AAUDIO_USAGE_VOICE_COMMUNICATION;
case ma_aaudio_usage_
safety:
return MA_AAUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING;
case ma_aaudio_usage_
voice_communication_signalling:
return MA_AAUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING;
case ma_aaudio_usage_
vehicle_status:
return MA_AAUDIO_USAGE_ALARM;
case ma_aaudio_usage_
alarm:
return MA_AAUDIO_USAGE_ALARM;
case ma_aaudio_usage_
alarm:
return MA_AAUDIO_USAGE_NOTIFICATION;
case ma_aaudio_usage_
notification:
return MA_AAUDIO_USAGE_NOTIFICATION;
case ma_aaudio_usage_
assistance_accessibility:
return MA_AAUDIO_USAGE_NOTIFICATION_RINGTONE;
case ma_aaudio_usage_
notification_ringtone:
return MA_AAUDIO_USAGE_NOTIFICATION_RINGTONE;
case ma_aaudio_usage_
assistance_navigation_guidance:
return MA_AAUDIO_USAGE_NOTIFICATION_EVENT;
case ma_aaudio_usage_
notification_event:
return MA_AAUDIO_USAGE_NOTIFICATION_EVENT;
case ma_aaudio_usage_assistance_
sonification:
return MA_AAUDIO_USAGE_ASSISTANCE_ACCESSIBILITY;
case ma_aaudio_usage_assistance_
accessibility:
return MA_AAUDIO_USAGE_ASSISTANCE_ACCESSIBILITY;
case ma_aaudio_usage_assi
tant:
return MA_AAUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE;
case ma_aaudio_usage_assi
stance_navigation_guidance:
return MA_AAUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE;
case ma_aaudio_usage_
game:
return MA_AAUDIO_USAGE_ASSISTANCE_SONIFICATION;
case ma_aaudio_usage_
assistance_sonification:
return MA_AAUDIO_USAGE_ASSISTANCE_SONIFICATION;
case ma_aaudio_usage_
media:
return MA_AAUDIO_USAGE_GAME;
case ma_aaudio_usage_
game:
return MA_AAUDIO_USAGE_GAME;
case ma_aaudio_usage_
notification:
return MA_AAUDIO_USAGE_ASSISTANT;
case ma_aaudio_usage_
assitant:
return MA_AAUDIO_USAGE_ASSISTANT;
case ma_aaudio_usage_
notification_event:
return MA_AAUDIO_SYSTEM_USAGE_EMERGENCY;
case ma_aaudio_usage_
emergency:
return MA_AAUDIO_SYSTEM_USAGE_EMERGENCY;
case ma_aaudio_usage_
notification_ringtone:
return MA_AAUDIO_SYSTEM_USAGE_SAFETY;
case ma_aaudio_usage_
safety:
return MA_AAUDIO_SYSTEM_USAGE_SAFETY;
case ma_aaudio_usage_v
oice_communication:
return MA_AAUDIO_SYSTEM_USAGE_VEHICLE_STATUS;
case ma_aaudio_usage_v
ehicle_status:
return MA_AAUDIO_SYSTEM_USAGE_VEHICLE_STATUS;
case ma_aaudio_usage_
voice_communication_signalling:
return MA_AAUDIO_SYSTEM_USAGE_ANNOUNCEMENT;
case ma_aaudio_usage_
announcement:
return MA_AAUDIO_SYSTEM_USAGE_ANNOUNCEMENT;
default: break;
default: break;
}
}
...
@@ -36036,10 +36036,10 @@ static ma_aaudio_usage_t ma_to_usage__aaudio(ma_aaudio_usage usage)
...
@@ -36036,10 +36036,10 @@ static ma_aaudio_usage_t ma_to_usage__aaudio(ma_aaudio_usage usage)
static ma_aaudio_content_type_t ma_to_content_type__aaudio(ma_aaudio_content_type contentType)
static ma_aaudio_content_type_t ma_to_content_type__aaudio(ma_aaudio_content_type contentType)
{
{
switch (contentType) {
switch (contentType) {
case ma_aaudio_content_type_
movie: return MA_AAUDIO_CONTENT_TYPE_MOVIE
;
case ma_aaudio_content_type_
speech: return MA_AAUDIO_CONTENT_TYPE_SPEECH
;
case ma_aaudio_content_type_music: return MA_AAUDIO_CONTENT_TYPE_MUSIC;
case ma_aaudio_content_type_music: return MA_AAUDIO_CONTENT_TYPE_MUSIC;
case ma_aaudio_content_type_movie: return MA_AAUDIO_CONTENT_TYPE_MOVIE;
case ma_aaudio_content_type_sonification: return MA_AAUDIO_CONTENT_TYPE_SONIFICATION;
case ma_aaudio_content_type_sonification: return MA_AAUDIO_CONTENT_TYPE_SONIFICATION;
case ma_aaudio_content_type_speech: return MA_AAUDIO_CONTENT_TYPE_SPEECH;
default: break;
default: break;
}
}
...
@@ -36051,9 +36051,9 @@ static ma_aaudio_input_preset_t ma_to_input_preset__aaudio(ma_aaudio_input_prese
...
@@ -36051,9 +36051,9 @@ static ma_aaudio_input_preset_t ma_to_input_preset__aaudio(ma_aaudio_input_prese
switch (inputPreset) {
switch (inputPreset) {
case ma_aaudio_input_preset_generic: return MA_AAUDIO_INPUT_PRESET_GENERIC;
case ma_aaudio_input_preset_generic: return MA_AAUDIO_INPUT_PRESET_GENERIC;
case ma_aaudio_input_preset_camcorder: return MA_AAUDIO_INPUT_PRESET_CAMCORDER;
case ma_aaudio_input_preset_camcorder: return MA_AAUDIO_INPUT_PRESET_CAMCORDER;
case ma_aaudio_input_preset_unprocessed: return MA_AAUDIO_INPUT_PRESET_UNPROCESSED;
case ma_aaudio_input_preset_voice_recognition: return MA_AAUDIO_INPUT_PRESET_VOICE_RECOGNITION;
case ma_aaudio_input_preset_voice_recognition: return MA_AAUDIO_INPUT_PRESET_VOICE_RECOGNITION;
case ma_aaudio_input_preset_voice_communication: return MA_AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION;
case ma_aaudio_input_preset_voice_communication: return MA_AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION;
case ma_aaudio_input_preset_unprocessed: return MA_AAUDIO_INPUT_PRESET_UNPROCESSED;
case ma_aaudio_input_preset_voice_performance: return MA_AAUDIO_INPUT_PRESET_VOICE_PERFORMANCE;
case ma_aaudio_input_preset_voice_performance: return MA_AAUDIO_INPUT_PRESET_VOICE_PERFORMANCE;
default: break;
default: break;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment