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
68812090
Commit
68812090
authored
Oct 21, 2016
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put the declaration of mal_device_set_stop_callback() in a sensible location.
parent
ce99f62f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
mini_al.h
mini_al.h
+8
-8
No files found.
mini_al.h
View file @
68812090
...
...
@@ -444,27 +444,27 @@ void mal_device_uninit(mal_device* pDevice);
// This is just an atomic assignment.
void
mal_device_set_recv_callback
(
mal_device
*
pDevice
,
mal_recv_proc
proc
);
// Sets the callback to use when the device has stopped, either explicitly or as a result of an error.
// Sets the callback to use when the application needs to send data to the device for playback.
//
// Note that the implementation of this callback must copy over as many samples as is available. The
// return value specifies how many samples were written to the output buffer. The backend will fill
// any leftover samples with silence.
//
// Thread Safety: SAFE
// This API is implemented as a simple atomic assignment.
//
// Efficiency: HIGH
// This is just an atomic assignment.
void
mal_device_set_s
top_callback
(
mal_device
*
pDevice
,
mal_stop
_proc
proc
);
void
mal_device_set_s
end_callback
(
mal_device
*
pDevice
,
mal_send
_proc
proc
);
// Sets the callback to use when the application needs to send data to the device for playback.
//
// Note that the implementation of this callback must copy over as many samples as is available. The
// return value specifies how many samples were written to the output buffer. The backend will fill
// any leftover samples with silence.
// Sets the callback to use when the device has stopped, either explicitly or as a result of an error.
//
// Thread Safety: SAFE
// This API is implemented as a simple atomic assignment.
//
// Efficiency: HIGH
// This is just an atomic assignment.
void
mal_device_set_s
end_callback
(
mal_device
*
pDevice
,
mal_send
_proc
proc
);
void
mal_device_set_s
top_callback
(
mal_device
*
pDevice
,
mal_stop
_proc
proc
);
// Activates the device. For playback devices this begins playback. For recording devices it begins
// recording.
...
...
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