Skip to content

Commit 55f6e09

Browse files
committed
Merge branch 'headless-develop' of github.com:spritebuilder/cocos2d-swift into headless-develop
2 parents bfffb31 + b1f36b0 commit 55f6e09

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Resources/Sounds/sound.ogg

5.95 KB
Binary file not shown.

cocos2d-ui-tests/tests/ObjectALTest.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ - (void) setupSimpleAudioTest
4949

5050
- (void) playSimpleSound:(id)sender
5151
{
52+
#if ANDROID
53+
[[OALSimpleAudio sharedInstance] playEffect:@"Sounds/sound.ogg"];
54+
#else
5255
[[OALSimpleAudio sharedInstance] playEffect:@"Sounds/sound.wav"];
56+
#endif
5357
}
5458

5559

external/ObjectAL/OALSimpleAudio.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ - (void) setPaused:(bool) value
312312

313313
- (bool) honorSilentSwitch
314314
{
315-
#if ANDROID
315+
#if __CC_PLATFORM_ANDROID
316316
#warning honorSilentSwitch not implemented
317317
return false;
318318
#else
@@ -322,7 +322,7 @@ - (bool) honorSilentSwitch
322322

323323
- (void) setHonorSilentSwitch:(bool) value
324324
{
325-
#if ANDROID
325+
#if __CC_PLATFORM_ANDROID
326326
#warning setHonorSilentSwitch not implemented
327327
#else
328328
[OALAudioSession sharedInstance].honorSilentSwitch = value;

external/ObjectAL/Support/OALAudioFile.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,6 @@ - (void) dealloc
180180
fileHandle = nil;
181181
}
182182
#elif __CC_PLATFORM_ANDROID
183-
if (oggPath) {
184-
free((void*)oggPath);
185-
}
186183
if (rawFILE) {
187184
fclose(rawFILE);
188185
}

0 commit comments

Comments
 (0)