mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-09 07:18:45 -04:00
Document missing bits of AudioDevice
This commit is contained in:
parent
af577836eb
commit
debdf051f8
@ -155,14 +155,20 @@ public:
|
|||||||
LockHandle& operator=(const LockHandle& other);
|
LockHandle& operator=(const LockHandle& other);
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::function<void(Uint8* stream, int len)> AudioCallback;
|
typedef std::function<void(Uint8* stream, int len)> AudioCallback; ///< Function type for audio callback
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SDL_AudioDeviceID device_id_; ///< SDL2 device id
|
SDL_AudioDeviceID device_id_; ///< SDL2 device id
|
||||||
AudioCallback callback_; ///< Callback used to feed audio data to the device
|
AudioCallback callback_; ///< Callback used to feed audio data to the device
|
||||||
|
|
||||||
private:
|
private:
|
||||||
////
|
////////////////////////////////////////////////////////////
|
||||||
|
/// \brief Static wrapper for audio callback
|
||||||
|
///
|
||||||
|
/// This only extracts this from userdata and
|
||||||
|
/// runs real this->callback_
|
||||||
|
///
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
static void SDLCallback(void *userdata, Uint8* stream, int len);
|
static void SDLCallback(void *userdata, Uint8* stream, int len);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user