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
0b2967c2
Commit
0b2967c2
authored
Dec 03, 2017
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mal_dsp_config_init().
parent
63cdc5ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
mini_al.h
mini_al.h
+16
-0
No files found.
mini_al.h
View file @
0b2967c2
...
@@ -1459,6 +1459,8 @@ mal_uint32 mal_dsp_read_frames_ex(mal_dsp* pDSP, mal_uint32 frameCount, void* pF
...
@@ -1459,6 +1459,8 @@ mal_uint32 mal_dsp_read_frames_ex(mal_dsp* pDSP, mal_uint32 frameCount, void* pF
// This function is useful for one-off bulk conversions, but if you're streaming data you should use the DSP APIs instead.
// This function is useful for one-off bulk conversions, but if you're streaming data you should use the DSP APIs instead.
mal_uint32
mal_convert_frames
(
void
*
pOut
,
mal_format
formatOut
,
mal_uint32
channelsOut
,
mal_uint32
sampleRateOut
,
const
void
*
pIn
,
mal_format
formatIn
,
mal_uint32
channelsIn
,
mal_uint32
sampleRateIn
,
mal_uint32
frameCountIn
);
mal_uint32
mal_convert_frames
(
void
*
pOut
,
mal_format
formatOut
,
mal_uint32
channelsOut
,
mal_uint32
sampleRateOut
,
const
void
*
pIn
,
mal_format
formatIn
,
mal_uint32
channelsIn
,
mal_uint32
sampleRateIn
,
mal_uint32
frameCountIn
);
// Helper for initializing a mal_dsp_config object.
mal_dsp_config
mal_dsp_config_init
(
mal_format
formatIn
,
mal_uint32
channelsIn
,
mal_uint32
sampleRateIn
,
mal_format
formatOut
,
mal_uint32
channelsOut
,
mal_uint32
sampleRateOut
);
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//
//
...
@@ -11066,6 +11068,20 @@ mal_uint32 mal_convert_frames(void* pOut, mal_format formatOut, mal_uint32 chann
...
@@ -11066,6 +11068,20 @@ mal_uint32 mal_convert_frames(void* pOut, mal_format formatOut, mal_uint32 chann
return
mal_dsp_read_frames_ex
(
&
dsp
,
frameCountOut
,
pOut
,
MAL_TRUE
);
return
mal_dsp_read_frames_ex
(
&
dsp
,
frameCountOut
,
pOut
,
MAL_TRUE
);
}
}
mal_dsp_config
mal_dsp_config_init
(
mal_format
formatIn
,
mal_uint32
channelsIn
,
mal_uint32
sampleRateIn
,
mal_format
formatOut
,
mal_uint32
channelsOut
,
mal_uint32
sampleRateOut
)
{
mal_dsp_config
config
;
mal_zero_object
(
&
config
);
config
.
formatIn
=
formatIn
;
config
.
channelsIn
=
channelsIn
;
config
.
sampleRateIn
=
sampleRateIn
;
config
.
formatOut
=
formatOut
;
config
.
channelsOut
=
channelsOut
;
config
.
sampleRateOut
=
sampleRateOut
;
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