Rename the support method to querySupport
This commit is contained in:
@@ -1031,12 +1031,12 @@ static void alc_initconfig(void)
|
||||
}
|
||||
|
||||
TRACE("Initialized backend \"%s\"\n", BackendList[i].name);
|
||||
if(!PlaybackBackend.name && VCALL(factory,support)(ALCbackend_Playback))
|
||||
if(!PlaybackBackend.name && VCALL(factory,querySupport)(ALCbackend_Playback))
|
||||
{
|
||||
PlaybackBackend = BackendList[i];
|
||||
TRACE("Added \"%s\" for playback\n", PlaybackBackend.name);
|
||||
}
|
||||
if(!CaptureBackend.name && VCALL(factory,support)(ALCbackend_Capture))
|
||||
if(!CaptureBackend.name && VCALL(factory,querySupport)(ALCbackend_Capture))
|
||||
{
|
||||
CaptureBackend = BackendList[i];
|
||||
TRACE("Added \"%s\" for capture\n", CaptureBackend.name);
|
||||
|
||||
+4
-4
@@ -102,7 +102,7 @@ struct ALCbackendFactoryVtable {
|
||||
ALCboolean (*const init)(ALCbackendFactory *self);
|
||||
void (*const deinit)(ALCbackendFactory *self);
|
||||
|
||||
ALCboolean (*const support)(ALCbackendFactory *self, ALCbackend_Type type);
|
||||
ALCboolean (*const querySupport)(ALCbackendFactory *self, ALCbackend_Type type);
|
||||
|
||||
void (*const probe)(ALCbackendFactory *self, enum DevProbe type);
|
||||
|
||||
@@ -114,8 +114,8 @@ static ALCboolean T##_ALCbackendFactory_init(ALCbackendFactory *obj) \
|
||||
{ return T##_init(STATIC_UPCAST(T, ALCbackendFactory, obj)); } \
|
||||
static void T##_ALCbackendFactory_deinit(ALCbackendFactory *obj) \
|
||||
{ T##_deinit(STATIC_UPCAST(T, ALCbackendFactory, obj)); } \
|
||||
static ALCboolean T##_ALCbackendFactory_support(ALCbackendFactory *obj, ALCbackend_Type a) \
|
||||
{ return T##_support(STATIC_UPCAST(T, ALCbackendFactory, obj), a); } \
|
||||
static ALCboolean T##_ALCbackendFactory_querySupport(ALCbackendFactory *obj, ALCbackend_Type a) \
|
||||
{ return T##_querySupport(STATIC_UPCAST(T, ALCbackendFactory, obj), a); } \
|
||||
static void T##_ALCbackendFactory_probe(ALCbackendFactory *obj, enum DevProbe a) \
|
||||
{ T##_probe(STATIC_UPCAST(T, ALCbackendFactory, obj), a); } \
|
||||
static ALCbackend* T##_ALCbackendFactory_createBackend(ALCbackendFactory *obj, ALCdevice *a) \
|
||||
@@ -124,7 +124,7 @@ static ALCbackend* T##_ALCbackendFactory_createBackend(ALCbackendFactory *obj, A
|
||||
static const struct ALCbackendFactoryVtable T##_ALCbackendFactory_vtable = { \
|
||||
T##_ALCbackendFactory_init, \
|
||||
T##_ALCbackendFactory_deinit, \
|
||||
T##_ALCbackendFactory_support, \
|
||||
T##_ALCbackendFactory_querySupport, \
|
||||
T##_ALCbackendFactory_probe, \
|
||||
T##_ALCbackendFactory_createBackend, \
|
||||
}
|
||||
|
||||
+1
-1
@@ -187,7 +187,7 @@ void ALCnullBackendFactory_deinit(ALCnullBackendFactory* UNUSED(self))
|
||||
{
|
||||
}
|
||||
|
||||
ALCboolean ALCnullBackendFactory_support(ALCnullBackendFactory* UNUSED(self), ALCbackend_Type type)
|
||||
ALCboolean ALCnullBackendFactory_querySupport(ALCnullBackendFactory* UNUSED(self), ALCbackend_Type type)
|
||||
{
|
||||
if(type == ALCbackend_Playback)
|
||||
return ALC_TRUE;
|
||||
|
||||
Reference in New Issue
Block a user