|
@@ -32,7 +32,6 @@ namespace openal
|
|
|
Pool::Pool()
|
|
|
: sources()
|
|
|
, totalSources(0)
|
|
|
- , mutex(nullptr)
|
|
|
{
|
|
|
// Clear errors.
|
|
|
alGetError();
|
|
@@ -53,9 +52,6 @@ Pool::Pool()
|
|
|
if (totalSources < 4)
|
|
|
throw love::Exception("Could not generate sources.");
|
|
|
|
|
|
- // Create the mutex.
|
|
|
- mutex = thread::newMutex();
|
|
|
-
|
|
|
#ifdef AL_SOFT_direct_channels
|
|
|
ALboolean hasext = alIsExtensionPresent("AL_SOFT_direct_channels");
|
|
|
#endif
|
|
@@ -79,8 +75,6 @@ Pool::~Pool()
|
|
|
{
|
|
|
stop();
|
|
|
|
|
|
- delete mutex;
|
|
|
-
|
|
|
// Free all sources.
|
|
|
alDeleteSources(totalSources, sources);
|
|
|
}
|