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
90550c9e
Commit
90550c9e
authored
May 02, 2020
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change ma_zero_pcm_frames() to take a 64-bit frame count.
parent
d2043021
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
miniaudio.h
miniaudio.h
+4
-3
No files found.
miniaudio.h
View file @
90550c9e
...
...
@@ -5163,7 +5163,7 @@ MA_API ma_uint32 ma_calculate_buffer_size_in_frames_from_milliseconds(ma_uint32
/*
Copies silent frames into the given buffer.
*/
MA_API void ma_zero_pcm_frames(void* p, ma_uint
32
frameCount, ma_format format, ma_uint32 channels);
MA_API void ma_zero_pcm_frames(void* p, ma_uint
64
frameCount, ma_format format, ma_uint32 channels);
/*
Clips f32 samples.
...
...
@@ -8840,9 +8840,9 @@ MA_API ma_uint32 ma_calculate_buffer_size_in_frames_from_milliseconds(ma_uint32
return bufferSizeInMilliseconds * (sampleRate/1000);
}
MA_API void ma_zero_pcm_frames(void* p, ma_uint
32
frameCount, ma_format format, ma_uint32 channels)
MA_API void ma_zero_pcm_frames(void* p, ma_uint
64
frameCount, ma_format format, ma_uint32 channels)
{
MA_ZERO_MEMORY
(p, frameCount * ma_get_bytes_per_frame(format, channels));
ma_zero_memory_64
(p, frameCount * ma_get_bytes_per_frame(format, channels));
}
MA_API void ma_clip_samples_f32(float* p, ma_uint32 sampleCount)
...
...
@@ -42483,6 +42483,7 @@ The following miscellaneous changes have also been made.
REVISION HISTORY
================
v0.10.5 - TBD
- Change ma_zero_pcm_frames() to take a 64-bit frame count.
- Add MA_NO_GENERATION build option to exclude the `ma_waveform` and `ma_noise` APIs from the build.
- Add support for formatted logging to the VC6 build.
- Minor documentation updates.
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