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
a73700c1
Commit
a73700c1
authored
Feb 25, 2018
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the default channel mapping to the same as that used by FLAC.
parent
54446d73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
mini_al.h
mini_al.h
+22
-9
No files found.
mini_al.h
View file @
a73700c1
...
...
@@ -10257,20 +10257,20 @@ static void mal_get_default_device_config_channel_map(mal_uint32 channels, mal_u
{
case
1
:
{
channelMap
[
0
]
=
MAL_CHANNEL_
FRONT_CENTER
;
channelMap
[
0
]
=
MAL_CHANNEL_
MONO
;
}
break
;
case
2
:
{
channelMap
[
0
]
=
MAL_CHANNEL_
FRONT_
LEFT
;
channelMap
[
1
]
=
MAL_CHANNEL_
FRONT_
RIGHT
;
channelMap
[
0
]
=
MAL_CHANNEL_LEFT
;
channelMap
[
1
]
=
MAL_CHANNEL_RIGHT
;
}
break
;
case
3
:
{
channelMap
[
0
]
=
MAL_CHANNEL_
FRONT_
LEFT
;
channelMap
[
1
]
=
MAL_CHANNEL_
FRONT_
RIGHT
;
channelMap
[
2
]
=
MAL_CHANNEL_
LFE
;
channelMap
[
0
]
=
MAL_CHANNEL_LEFT
;
channelMap
[
1
]
=
MAL_CHANNEL_RIGHT
;
channelMap
[
2
]
=
MAL_CHANNEL_
MONO
;
}
break
;
case
4
:
...
...
@@ -10285,9 +10285,9 @@ static void mal_get_default_device_config_channel_map(mal_uint32 channels, mal_u
{
channelMap
[
0
]
=
MAL_CHANNEL_FRONT_LEFT
;
channelMap
[
1
]
=
MAL_CHANNEL_FRONT_RIGHT
;
channelMap
[
2
]
=
MAL_CHANNEL_
BACK_LEFT
;
channelMap
[
3
]
=
MAL_CHANNEL_BACK_
RIGH
T
;
channelMap
[
4
]
=
MAL_CHANNEL_
LFE
;
channelMap
[
2
]
=
MAL_CHANNEL_
FRONT_CENTER
;
channelMap
[
3
]
=
MAL_CHANNEL_BACK_
LEF
T
;
channelMap
[
4
]
=
MAL_CHANNEL_
BACK_RIGHT
;
}
break
;
case
6
:
...
...
@@ -10300,6 +10300,17 @@ static void mal_get_default_device_config_channel_map(mal_uint32 channels, mal_u
channelMap
[
5
]
=
MAL_CHANNEL_BACK_RIGHT
;
}
break
;
case
7
:
{
channelMap
[
0
]
=
MAL_CHANNEL_FRONT_LEFT
;
channelMap
[
1
]
=
MAL_CHANNEL_FRONT_RIGHT
;
channelMap
[
2
]
=
MAL_CHANNEL_FRONT_CENTER
;
channelMap
[
3
]
=
MAL_CHANNEL_LFE
;
channelMap
[
4
]
=
MAL_CHANNEL_BACK_CENTER
;
channelMap
[
5
]
=
MAL_CHANNEL_SIDE_LEFT
;
channelMap
[
6
]
=
MAL_CHANNEL_SIDE_RIGHT
;
}
break
;
case
8
:
{
channelMap
[
0
]
=
MAL_CHANNEL_FRONT_LEFT
;
...
...
@@ -10315,6 +10326,7 @@ static void mal_get_default_device_config_channel_map(mal_uint32 channels, mal_u
default:
{
// Just leave it all blank in this case. This will use the same mapping as the device's native mapping.
mal_zero_memory
(
channelMap
,
sizeof
(
channelMap
));
}
break
;
}
}
...
...
@@ -12897,6 +12909,7 @@ void mal_pcm_f32_to_s32(int* pOut, const float* pIn, unsigned int count)
// - Add decoder APIs for loading WAV, FLAC, Vorbis and MP3 files.
// - Allow opening of devices without a context.
// - In this case the context is created and managed internally by the device.
// - Change the default channel mapping to the same as that used by FLAC.
// - Fix build errors with macOS.
//
// v0.6c - 2018-02-12
...
...
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