我在使用OpenAL的Everyplay v1.4.2时遇到了问题。该行为运行良好,但每次播放声音时,我都会收到一个日志:"Everyplay value missing implementation: alGetSourcef 2401,AL_SEC_OFFSET,*value“。
我还尝试从Everyplay.h中找到的这段代码中停用OpenAL:
@interface EveryplayFeatures : NSObject
/*
* To disable Everyplay OpenAL implementation, override this class
* method to return NO.
*/
+ (BOOL) supportsOpenAL;
/*
* CocosDenshion background music support currently lacks hardware
* decoder support. To disable recording support for background music,
* override this class method to return NO.
*/
+ (BOOL) supportsCocosDenshion;
@end我不知道该怎么做它说的。我尝试在名为"EveryplayFeatures.mm“的文件中创建此接口的实现:
@implementation EveryplayFeatures
+ (BOOL) supportsOpenAL
{
return NO;
}
+ (BOOL) supportsCocosDenshion
{
return YES;
}
@end这不会改变任何事情。
有谁知道第一条错误消息是什么意思以及如何修复它吗?否则,我如何有效地禁用Everyplay的OpenAL支持?
发布于 2013-06-24 14:26:16
似乎Everyplay还不支持你的音频代码正在使用的AL_SEC_OFFSET。要使EveryplayFeatures正常工作,请按如下方式进行更改:
EveryplayFeatures.h
#import <Foundation/Foundation.h>
@interface EveryplayFeatures : NSObject
@endEveryplayFeatures.m
@implementation EveryplayFeatures (Private)
+ (BOOL) supportsOpenAL {
return NO;
}
+ (BOOL) supportsCocosDenshion {
return YES;
}
@endhttps://stackoverflow.com/questions/17191168
复制相似问题