Permalink
Browse files

Compilation fix for Android clang 3.1

  • Loading branch information...
1 parent 5ca1575 commit c3c91e353edda7572b9a826da2eee5340ca8fd5a @mingulov committed Dec 22, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 CocosDenshion/android/opensl/OpenSLEngine.cpp
@@ -289,7 +289,8 @@ bool initAudioPlayer(AudioPlayer* player, const char* filename)
}
SLDataLocator_AndroidFD loc_fd = {SL_DATALOCATOR_ANDROIDFD, fd, start, length};
SLDataFormat_MIME format_mime = {SL_DATAFORMAT_MIME, NULL, SL_CONTAINERTYPE_UNSPECIFIED};
- (player->audioSrc) = {&loc_fd, &format_mime};
+ player->audioSrc.pLocator = &loc_fd;
+ player->audioSrc.pFormat = &format_mime;
return createAudioPlayerBySource(player);
}

0 comments on commit c3c91e3

Please sign in to comment.