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
ba2f46b6
Commit
ba2f46b6
authored
Jan 20, 2022
by
David Reid
Committed by
GitHub
Jan 20, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #413 from Clownacy/dev
Update some outdated parts of the documentation
parents
252de0f0
56e41a0f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
miniaudio.h
miniaudio.h
+6
-5
No files found.
miniaudio.h
View file @
ba2f46b6
...
...
@@ -2681,7 +2681,7 @@ initializing a simple channel converter which converts from mono to stereo.
NULL, // Output channel map
ma_channel_mix_mode_default); // The mixing algorithm to use when combining channels.
result = ma_channel_converter_init(&config, &converter);
result = ma_channel_converter_init(&config,
NULL,
&converter);
if (result != MA_SUCCESS) {
// Error.
}
...
...
@@ -2978,7 +2978,7 @@ object like this:
);
ma_data_converter converter;
ma_result result = ma_data_converter_init(&config, &converter);
ma_result result = ma_data_converter_init(&config,
NULL,
&converter);
if (result != MA_SUCCESS) {
// An error occurred...
}
...
...
@@ -3003,7 +3003,7 @@ Something like the following may be more suitable depending on your requirements
Do the following to uninitialize the data converter:
```c
ma_data_converter_uninit(&converter);
ma_data_converter_uninit(&converter
, NULL
);
```
The following example shows how data can be processed
...
...
@@ -3611,8 +3611,9 @@ Some backends have some nuance details you may want to be aware of.
WASAPI and Core Audio, however other backends such as PulseAudio may naturally support it, though
not all have been tested.
- The contents of the output buffer passed into the data callback will always be pre-initialized to
silence unless the `noPreZeroedOutputBuffer` config variable in `ma_device_config` is set to true,
in which case it'll be undefined which will require you to write something to the entire buffer.
silence unless the `noPreSilencedOutputBuffer` config variable in `ma_device_config` is set to
true, in which case it'll be undefined which will require you to write something to the entire
buffer.
- By default miniaudio will automatically clip samples. This only applies when the playback sample
format is configured as `ma_format_f32`. If you are doing clipping yourself, you can disable this
overhead by setting `noClip` to true in the device 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