mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 09:14:04 +02:00
Put the declaration of mal_device_set_stop_callback() in a sensible location.
This commit is contained in:
@@ -444,15 +444,6 @@ void mal_device_uninit(mal_device* pDevice);
|
|||||||
// This is just an atomic assignment.
|
// This is just an atomic assignment.
|
||||||
void mal_device_set_recv_callback(mal_device* pDevice, mal_recv_proc proc);
|
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.
|
|
||||||
//
|
|
||||||
// Thread Safety: SAFE
|
|
||||||
// This API is implemented as a simple atomic assignment.
|
|
||||||
//
|
|
||||||
// Efficiency: HIGH
|
|
||||||
// This is just an atomic assignment.
|
|
||||||
void mal_device_set_stop_callback(mal_device* pDevice, mal_stop_proc proc);
|
|
||||||
|
|
||||||
// Sets the callback to use when the application needs to send data to the device for playback.
|
// 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
|
// Note that the implementation of this callback must copy over as many samples as is available. The
|
||||||
@@ -466,6 +457,15 @@ void mal_device_set_stop_callback(mal_device* pDevice, mal_stop_proc proc);
|
|||||||
// This is just an atomic assignment.
|
// This is just an atomic assignment.
|
||||||
void mal_device_set_send_callback(mal_device* pDevice, mal_send_proc proc);
|
void mal_device_set_send_callback(mal_device* pDevice, mal_send_proc proc);
|
||||||
|
|
||||||
|
// 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_stop_callback(mal_device* pDevice, mal_stop_proc proc);
|
||||||
|
|
||||||
// Activates the device. For playback devices this begins playback. For recording devices it begins
|
// Activates the device. For playback devices this begins playback. For recording devices it begins
|
||||||
// recording.
|
// recording.
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user