iOS google gvr sdk.GVRAudioEngine无法设置请求的文件属性:1718449215

时间:2018-01-30 03:11:53

标签: ios audio google-vr

当我使用gvraudioSDK尝试预加载Ambisonic声音文件对象时,会出现此失败消息。

  

GvrAudioEemo [10106:51434] 711:EXCEPTION(1718449215):"创建音频>转换器"   2018-01-30 10:17:54.661309 + 0800 GvrAudioEemo [10106:51434]无法设置>请求的文件属性:1718449215

似乎预装声音文件失败了。

我的代码:

//code:
self.gvrEngine = [[GVRAudioEngine alloc] initWithRenderingMode:kRenderingModeBinauralHighQuality];
BOOL preloadSuccess = [self.gvrEngine preloadSoundFile:kObjectSoundFile];    
BOOL startSuccess = [self.gvrEngine start];
// Generate seed for random number generation.
srand48(time(0));

// Spawn the first cube.
int soundId = [self.gvrEngine createSoundfield:kObjectSoundFile];

if (soundId != -1) {
    [self.gvrEngine setSoundObjectPosition:soundId x:4 y:0 z:0];
    [self.gvrEngine setSoundVolume:soundId volume:0.8];
}
[self.gvrEngine setHeadPosition:0 y:0 z:0];
[self.gvrEngine playSound:soundId loopingEnabled:true];

kObjectSoundFile是4通道音频文件的文件名。我调试代码并找到' preloadSuccess'是假的。有人可以帮我吗?

0 个答案:

没有答案