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
15298ad7
Commit
15298ad7
authored
Dec 30, 2021
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix documentation for ma_decoder_read_pcm_frames().
Public issue
https://github.com/mackron/miniaudio/issues/385
parent
6353c2e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
miniaudio.h
miniaudio.h
+4
-4
No files found.
miniaudio.h
View file @
15298ad7
...
@@ -2448,12 +2448,12 @@ count, sample rate and channel map:
...
@@ -2448,12 +2448,12 @@ count, sample rate and channel map:
When passing in `NULL` for decoder config in `ma_decoder_init*()`, the output format will be the
When passing in `NULL` for decoder config in `ma_decoder_init*()`, the output format will be the
same as that defined by the decoding backend.
same as that defined by the decoding backend.
Data is read from the decoder as PCM frames. This will
return
the number of PCM frames actually
Data is read from the decoder as PCM frames. This will
output
the number of PCM frames actually
read. If th
e return value is less than the requested number of PCM frames it means you've reached
read. If th
is is less than the requested number of PCM frames it means you've reached the end. The
the end:
return value will be `MA_AT_END` if no samples have been read and the end has been reached.
```c
```c
ma_uint64 framesRead = ma_decoder_read_pcm_frames(pDecoder, pFrames, framesToRead);
ma_uint64 framesRead = ma_decoder_read_pcm_frames(pDecoder, pFrames, framesToRead
, &framesRead
);
if (framesRead < framesToRead) {
if (framesRead < framesToRead) {
// Reached the end.
// Reached the end.
}
}
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