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
b1893aa8
Commit
b1893aa8
authored
Aug 21, 2025
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor C89 compatibility fix.
parent
df4baf8d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
examples/engine_sdl.c
examples/engine_sdl.c
+3
-1
No files found.
examples/engine_sdl.c
View file @
b1893aa8
...
@@ -22,10 +22,12 @@ static ma_sound g_sound; /* This example will play only a single soun
...
@@ -22,10 +22,12 @@ static ma_sound g_sound; /* This example will play only a single soun
void
data_callback
(
void
*
pUserData
,
ma_uint8
*
pBuffer
,
int
bufferSizeInBytes
)
void
data_callback
(
void
*
pUserData
,
ma_uint8
*
pBuffer
,
int
bufferSizeInBytes
)
{
{
ma_uint32
bufferSizeInFrames
;
(
void
)
pUserData
;
(
void
)
pUserData
;
/* Reading is just a matter of reading straight from the engine. */
/* Reading is just a matter of reading straight from the engine. */
ma_uint32
bufferSizeInFrames
=
(
ma_uint32
)
bufferSizeInBytes
/
ma_get_bytes_per_frame
(
ma_format_f32
,
ma_engine_get_channels
(
&
g_engine
));
bufferSizeInFrames
=
(
ma_uint32
)
bufferSizeInBytes
/
ma_get_bytes_per_frame
(
ma_format_f32
,
ma_engine_get_channels
(
&
g_engine
));
ma_engine_read_pcm_frames
(
&
g_engine
,
pBuffer
,
bufferSizeInFrames
,
NULL
);
ma_engine_read_pcm_frames
(
&
g_engine
,
pBuffer
,
bufferSizeInFrames
,
NULL
);
}
}
...
...
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