Remove a couple unnecessary type aliases
This commit is contained in:
+2
-2
@@ -988,7 +988,7 @@ bool SetSourcefv(ALsource *Source, ALCcontext *Context, SourceProp prop, const a
|
||||
if(IsPlayingOrPaused(Source))
|
||||
{
|
||||
ALCdevice *device{Context->mDevice.get()};
|
||||
BackendLockGuard _{*device->Backend};
|
||||
std::lock_guard<BackendBase> _{*device->Backend};
|
||||
/* Double-check that the source is still playing while we have the
|
||||
* lock.
|
||||
*/
|
||||
@@ -1215,7 +1215,7 @@ bool SetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp prop, const a
|
||||
|
||||
if(IsPlayingOrPaused(Source))
|
||||
{
|
||||
BackendLockGuard _{*device->Backend};
|
||||
std::lock_guard<BackendBase> _{*device->Backend};
|
||||
if(ALvoice *voice{GetSourceVoice(Source, Context)})
|
||||
{
|
||||
auto vpos = GetSampleOffset(Source);
|
||||
|
||||
+1
-1
@@ -4240,7 +4240,7 @@ START_API_FUNC
|
||||
alcSetError(dev.get(), ALC_INVALID_VALUE);
|
||||
else
|
||||
{
|
||||
BackendLockGuard _{*dev->Backend};
|
||||
std::lock_guard<BackendBase> _{*dev->Backend};
|
||||
aluMixData(dev.get(), buffer, static_cast<ALuint>(samples), dev->channelsFromFmt());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,8 +54,6 @@ struct BackendBase {
|
||||
virtual ~BackendBase();
|
||||
};
|
||||
using BackendPtr = std::unique_ptr<BackendBase>;
|
||||
using BackendUniqueLock = std::unique_lock<BackendBase>;
|
||||
using BackendLockGuard = std::lock_guard<BackendBase>;
|
||||
|
||||
enum class BackendType {
|
||||
Playback,
|
||||
|
||||
Reference in New Issue
Block a user