mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Add love.audiodisconnected callback.
The callback is fired when the audio has been disconnected.
This commit is contained in:
@@ -64,7 +64,7 @@ class Pool
|
||||
{
|
||||
public:
|
||||
|
||||
Pool();
|
||||
Pool(ALCdevice *device);
|
||||
~Pool();
|
||||
|
||||
/**
|
||||
@@ -101,9 +101,15 @@ private:
|
||||
// Maximum possible number of OpenAL sources the pool attempts to generate.
|
||||
static const int MAX_SOURCES = 64;
|
||||
|
||||
// Current OpenAL device
|
||||
ALCdevice *device;
|
||||
|
||||
// OpenAL sources
|
||||
ALuint sources[MAX_SOURCES];
|
||||
|
||||
// Is device disconnection has been notified?
|
||||
bool disconnectNotified;
|
||||
|
||||
// Total number of created sources in the pool.
|
||||
int totalSources;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user