Remove a couple unnecessary type aliases

This commit is contained in:
Chris Robinson
2020-02-22 00:08:55 -08:00
parent 4660819f6a
commit 6044e0d7ca
3 changed files with 3 additions and 5 deletions
+2 -2
View File
@@ -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
View File
@@ -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());
}
}
-2
View File
@@ -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,