From 68812090210c9a085a63118b4fd8c4036428e149 Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 21 Oct 2016 13:46:20 +1000 Subject: [PATCH] Put the declaration of mal_device_set_stop_callback() in a sensible location. --- mini_al.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mini_al.h b/mini_al.h index 1e35cb50..4104b2ae 100644 --- a/mini_al.h +++ b/mini_al.h @@ -444,15 +444,6 @@ 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. -// -// 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. // // 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. 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 // recording. //