2013-06-19 6 views
0

OpenAL에서 사용되는 Everyplay v1.4.2에 문제가 있습니다. 이 동작은 정상적으로 작동하지만 사운드가 재생 될 때마다 "Everyplay OpenAL 구현이 누락되었습니다 : alGetSourcef 2401, AL_SEC_OFFSET, * value"라는 로그가 표시됩니다.Everyplace with OpenAL을 사용하여 기생충 로깅

나는 또한 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 지원을 어떻게 효과적으로 비활성화 할 수 있습니까?

+0

을 Everyplay SDK 1.6.2로, alGetSourcef 통해 AL_SEC_OFFSET 쿼리는 이제 BTW –

답변

1

Everyplay는 오디오 코드가 사용하는 AL_SEC_OFFSET을 아직 지원하지 않습니다. EveryplayFeatures이 같은 변경 작업을하려면 :

EveryplayFeatures.h

#import <Foundation/Foundation.h> 

@interface EveryplayFeatures : NSObject 

@end 

EveryplayFeatures.m

@implementation EveryplayFeatures (Private) 

+ (BOOL) supportsOpenAL { 
    return NO; 
} 

+ (BOOL) supportsCocosDenshion { 
    return YES; 
} 

@end 
+0

지원됩니다 . YES가 기본값이기 때문에 supportsCocosDenshion을 그대로 남겨 둘 수 있습니다. –