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
c3aae67b
Commit
c3aae67b
authored
Nov 29, 2022
by
Patrick Stewart
Committed by
David Reid
Dec 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add fallthrough attribute to fix build with Wimplicit-fallthrough on mac
parent
58219ed8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
miniaudio.h
miniaudio.h
+16
-3
No files found.
miniaudio.h
View file @
c3aae67b
...
@@ -3841,6 +3841,19 @@ typedef ma_uint16 wchar_t;
...
@@ -3841,6 +3841,19 @@ typedef ma_uint16 wchar_t;
#endif
#endif
#endif
#endif
#if defined(__has_c_attribute)
#if __has_c_attribute(fallthrough)
#define MA_FALLTHROUGH [[fallthrough]]
#endif
#endif
#if !defined(MA_FALLTHROUGH) && defined(__has_attribute) && (defined(__clang__) || defined(__GNUC__))
#if __has_attribute(fallthrough)
#define MA_FALLTHROUGH __attribute__((fallthrough))
#endif
#endif
#if !defined(MA_FALLTHROUGH)
#define MA_FALLTHROUGH ((void)0)
#endif
#ifdef _MSC_VER
#ifdef _MSC_VER
#define MA_INLINE __forceinline
#define MA_INLINE __forceinline
...
@@ -31629,15 +31642,15 @@ static ma_result ma_get_channel_map_from_AudioChannelLayout(AudioChannelLayout*
...
@@ -31629,15 +31642,15 @@ static ma_result ma_get_channel_map_from_AudioChannelLayout(AudioChannelLayout*
{
{
pChannelMap[7] = MA_CHANNEL_SIDE_RIGHT;
pChannelMap[7] = MA_CHANNEL_SIDE_RIGHT;
pChannelMap[6] = MA_CHANNEL_SIDE_LEFT;
pChannelMap[6] = MA_CHANNEL_SIDE_LEFT;
} /* Intentional fallthrough. */
}
MA_FALLTHROUGH;
/* Intentional fallthrough. */
case kAudioChannelLayoutTag_Hexagonal:
case kAudioChannelLayoutTag_Hexagonal:
{
{
pChannelMap[5] = MA_CHANNEL_BACK_CENTER;
pChannelMap[5] = MA_CHANNEL_BACK_CENTER;
} /* Intentional fallthrough. */
}
MA_FALLTHROUGH;
/* Intentional fallthrough. */
case kAudioChannelLayoutTag_Pentagonal:
case kAudioChannelLayoutTag_Pentagonal:
{
{
pChannelMap[4] = MA_CHANNEL_FRONT_CENTER;
pChannelMap[4] = MA_CHANNEL_FRONT_CENTER;
}
/* Intentional fallg
hrough. */
}
MA_FALLTHROUGH; /* Intentional fallt
hrough. */
case kAudioChannelLayoutTag_Quadraphonic:
case kAudioChannelLayoutTag_Quadraphonic:
{
{
pChannelMap[3] = MA_CHANNEL_BACK_RIGHT;
pChannelMap[3] = MA_CHANNEL_BACK_RIGHT;
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