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
847897e3
Commit
847897e3
authored
Mar 31, 2018
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mal_channel_router_config_init().
parent
81ae390c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
mini_al.h
mini_al.h
+22
-0
No files found.
mini_al.h
View file @
847897e3
...
...
@@ -1860,6 +1860,8 @@ mal_result mal_channel_router_init_deinterleaved(const mal_channel_router_config
// Reads data from the channel router as deinterleaved channels.
mal_uint64
mal_channel_router_read_frames_deinterleaved
(
mal_channel_router
*
pRouter
,
mal_uint64
frameCount
,
void
**
ppSamplesOut
);
// Helper for initializing a channel router config.
mal_channel_router_config
mal_channel_router_config_init
(
mal_uint32
channelsIn
,
mal_channel
channelMapIn
[
MAL_MAX_CHANNELS
],
mal_uint32
channelsOut
,
mal_channel
channelMapOut
[
MAL_MAX_CHANNELS
],
mal_channel_mix_mode
mixingMode
);
///////////////////////////////////////////////////////////////////////////////
...
...
@@ -17776,6 +17778,26 @@ mal_uint64 mal_channel_router_read_frames_deinterleaved(mal_channel_router* pRou
return
totalFramesRead
;
}
mal_channel_router_config
mal_channel_router_config_init
(
mal_uint32
channelsIn
,
mal_channel
channelMapIn
[
MAL_MAX_CHANNELS
],
mal_uint32
channelsOut
,
mal_channel
channelMapOut
[
MAL_MAX_CHANNELS
],
mal_channel_mix_mode
mixingMode
)
{
mal_channel_router_config
config
;
mal_zero_object
(
&
config
);
config
.
channelsIn
=
channelsIn
;
for
(
mal_uint32
iChannel
=
0
;
iChannel
<
channelsIn
;
++
iChannel
)
{
config
.
channelMapIn
[
iChannel
]
=
channelMapIn
[
iChannel
];
}
config
.
channelsOut
=
channelsOut
;
for
(
mal_uint32
iChannel
=
0
;
iChannel
<
channelsOut
;
++
iChannel
)
{
config
.
channelMapOut
[
iChannel
]
=
channelMapOut
[
iChannel
];
}
config
.
mixingMode
=
mixingMode
;
return
config
;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
...
...
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