File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments