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
de5f370d
Commit
de5f370d
authored
Feb 17, 2025
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some warnings with examples.
parent
47aa3e34
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
4 deletions
+8
-4
examples/custom_backend.c
examples/custom_backend.c
+1
-1
examples/data_source_chaining.c
examples/data_source_chaining.c
+3
-1
examples/hilo_interop.c
examples/hilo_interop.c
+2
-0
examples/resource_manager_advanced.c
examples/resource_manager_advanced.c
+1
-1
examples/simple_mixing.c
examples/simple_mixing.c
+1
-1
No files found.
examples/custom_backend.c
View file @
de5f370d
...
...
@@ -706,4 +706,4 @@ int main(int argc, char** argv)
(
void
)
argv
;
return
0
;
}
\ No newline at end of file
}
examples/data_source_chaining.c
View file @
de5f370d
...
...
@@ -49,6 +49,8 @@ ma_decoder* g_pDecoders;
static
ma_data_source
*
next_callback_tail
(
ma_data_source
*
pDataSource
)
{
(
void
)
pDataSource
;
/* Unused. */
if
(
g_decoderCount
>
0
)
{
/* <-- We check for this in main() so should never happen. */
return
NULL
;
}
...
...
@@ -158,4 +160,4 @@ done_decoders:
free
(
g_pDecoders
);
return
0
;
}
\ No newline at end of file
}
examples/hilo_interop.c
View file @
de5f370d
...
...
@@ -28,6 +28,8 @@ void capture_data_callback(ma_device* pDevice, void* pFramesOut, const void* pFr
ma_result
result
;
ma_uint32
framesWritten
;
(
void
)
pFramesOut
;
/* We need to write to the ring buffer. Need to do this in a loop. */
framesWritten
=
0
;
while
(
framesWritten
<
frameCount
)
{
...
...
examples/resource_manager_advanced.c
View file @
de5f370d
...
...
@@ -266,7 +266,7 @@ int main(int argc, char** argv)
ma_thread_create
(
&
jobThread
,
ma_thread_priority_default
,
0
,
custom_job_thread
,
&
resourceManager
,
NULL
);
/* Create each data source from the resource manager. Note that the caller is the owner. */
for
(
iFile
=
0
;
iFile
<
ma_countof
(
g_dataSources
)
&&
iFile
<
argc
-
1
;
iFile
+=
1
)
{
for
(
iFile
=
0
;
iFile
<
(
int
)
ma_countof
(
g_dataSources
)
&&
iFile
<
argc
-
1
;
iFile
+=
1
)
{
result
=
ma_resource_manager_data_source_init
(
&
resourceManager
,
argv
[
iFile
+
1
],
...
...
examples/simple_mixing.c
View file @
de5f370d
...
...
@@ -29,7 +29,7 @@ ma_bool32* g_pDecodersAtEnd;
ma_event
g_stopEvent
;
/* <-- Signaled by the audio thread, waited on by the main thread. */
ma_bool32
are_all_decoders_at_end
()
ma_bool32
are_all_decoders_at_end
(
void
)
{
ma_uint32
iDecoder
;
for
(
iDecoder
=
0
;
iDecoder
<
g_decoderCount
;
++
iDecoder
)
{
...
...
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