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
16eca182
Commit
16eca182
authored
Jun 25, 2017
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small tweak to WinMM.
parent
c63e4d03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
mini_al.h
mini_al.h
+5
-0
No files found.
mini_al.h
View file @
16eca182
...
...
@@ -4072,6 +4072,11 @@ static mal_result mal_device_init__winmm(mal_context* pContext, mal_device_type
mal_get_default_channel_mapping
(
pDevice
->
pContext
->
backend
,
pDevice
->
internalChannels
,
pDevice
->
internalChannelMap
);
// Latency with WinMM seems pretty bad from my testing... Need to increase the default buffer size.
if
(
pDevice
->
flags
&
MAL_DEVICE_FLAG_USING_DEFAULT_BUFFER_SIZE
)
{
pDevice
->
bufferSizeInFrames
*=
6
;
// <-- Might need to fiddle with this to find a more ideal value. May even be able to just add a fixed amount rather than scaling.
}
// The size of the intermediary buffer needs to be able to fit every fragment.
pDevice
->
winmm
.
fragmentSizeInFrames
=
pDevice
->
bufferSizeInFrames
/
pDevice
->
periods
;
pDevice
->
winmm
.
fragmentSizeInBytes
=
pDevice
->
winmm
.
fragmentSizeInFrames
*
pDevice
->
internalChannels
*
mal_get_sample_size_in_bytes
(
pDevice
->
internalFormat
);
...
...
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