Ios 如何判断MIDIEndpointRef是否是虚拟的?
我试图在iOS应用程序中区分“虚拟”和“非虚拟”MIDI端点引用 MIDIObjectType枚举似乎是可以查看的地方,但据我所知,这个属性不是我可以查询的Ios 如何判断MIDIEndpointRef是否是虚拟的?,ios,coremidi,Ios,Coremidi,我试图在iOS应用程序中区分“虚拟”和“非虚拟”MIDI端点引用 MIDIObjectType枚举似乎是可以查看的地方,但据我所知,这个属性不是我可以查询的 有什么建议吗?从MIDIEndpointRef开始,尝试使用MIDIEndpointGetEntity然后MIDIEntityGetDevice查找设备。如果实体或设备为零,则端点可能是“虚拟的”。从MIDIEndpointRef开始,尝试使用MIDIEndpointGetEntity然后MIDIEntityGetDevice查找设备。如果
有什么建议吗?从
MIDIEndpointRef
开始,尝试使用MIDIEndpointGetEntity
然后MIDIEntityGetDevice
查找设备。如果实体或设备为零,则端点可能是“虚拟的”。从MIDIEndpointRef
开始,尝试使用MIDIEndpointGetEntity
然后MIDIEntityGetDevice
查找设备。如果实体或设备为零,则端点可能是“虚拟的”。从MIDIEndpointRef
开始,尝试使用MIDIEndpointGetEntity
然后MIDIEntityGetDevice
查找设备。如果实体或设备为零,则端点可能是“虚拟的”。从MIDIEndpointRef
开始,尝试使用MIDIEndpointGetEntity
然后MIDIEntityGetDevice
查找设备。如果实体或设备为零,那么端点可能是“虚拟的”。以下是我在OMAC google group上提到的解决方案(感谢Jesse Chappell
static BOOL isVirtualEndpoint(MIDIEndpointRef ref)
{
MIDIEntityRef entity = 0;
MIDIEndpointGetEntity(ref, &entity);
if (entity)
{
return NO;
}
else
{
return YES;
}
}
这是我在OMAC谷歌集团上看到的解决方案(谢谢Jesse Chappell
static BOOL isVirtualEndpoint(MIDIEndpointRef ref)
{
MIDIEntityRef entity = 0;
MIDIEndpointGetEntity(ref, &entity);
if (entity)
{
return NO;
}
else
{
return YES;
}
}
这是我在OMAC谷歌集团上看到的解决方案(谢谢Jesse Chappell
static BOOL isVirtualEndpoint(MIDIEndpointRef ref)
{
MIDIEntityRef entity = 0;
MIDIEndpointGetEntity(ref, &entity);
if (entity)
{
return NO;
}
else
{
return YES;
}
}
这是我在OMAC谷歌集团上看到的解决方案(谢谢Jesse Chappell
static BOOL isVirtualEndpoint(MIDIEndpointRef ref)
{
MIDIEntityRef entity = 0;
MIDIEndpointGetEntity(ref, &entity);
if (entity)
{
return NO;
}
else
{
return YES;
}
}
可以使用MIDIObjectFindByUniqueID(::)
查询MIDIObjectRef的MIDIObjectType
。可以使用MIDIObjectFindByUniqueID(:)
查询MIDIObjectRef的MIDIObjectType
。可以使用MIDIObjectFindByUniqueID(:::)
查询MIDIObjectRef的MIDIObjectType
。可以使用MIDIObjectFindByUniqueID(::)
查询MIDIObjectRef的MIDIObjectType
。