Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何判断MIDIEndpointRef是否是虚拟的?_Ios_Coremidi - Fatal编程技术网

Ios 如何判断MIDIEndpointRef是否是虚拟的?

Ios 如何判断MIDIEndpointRef是否是虚拟的?,ios,coremidi,Ios,Coremidi,我试图在iOS应用程序中区分“虚拟”和“非虚拟”MIDI端点引用 MIDIObjectType枚举似乎是可以查看的地方,但据我所知,这个属性不是我可以查询的 有什么建议吗?从MIDIEndpointRef开始,尝试使用MIDIEndpointGetEntity然后MIDIEntityGetDevice查找设备。如果实体或设备为零,则端点可能是“虚拟的”。从MIDIEndpointRef开始,尝试使用MIDIEndpointGetEntity然后MIDIEntityGetDevice查找设备。如果

我试图在iOS应用程序中区分“虚拟”和“非虚拟”MIDI端点引用

MIDIObjectType枚举似乎是可以查看的地方,但据我所知,这个属性不是我可以查询的


有什么建议吗?

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