mirror of https://github.com/axmolengine/axmol.git
Merge pull request #2842 from dumganhar/develop
[Android] Don't use c++11 feature in OpenSLEngine.cpp. [iOS] Adding i386 arch for MoonWarriors.
This commit is contained in:
commit
b1206700f3
|
@ -289,7 +289,8 @@ bool initAudioPlayer(AudioPlayer* player, const char* filename)
|
|||
if(fp){
|
||||
SLDataLocator_URI loc_fd = {SL_DATALOCATOR_URI , (SLchar*)filename};
|
||||
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);
|
||||
}
|
||||
LOGD("file not found! Stop preload file: %s", filename);
|
||||
|
|
|
@ -633,7 +633,7 @@
|
|||
PUBLIC_HEADERS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/Headers";
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
USER_HEADER_SEARCH_PATHS = "";
|
||||
VALID_ARCHS = "armv7 armv7s";
|
||||
VALID_ARCHS = "armv7 armv7s i386";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
name = Debug;
|
||||
|
@ -680,7 +680,7 @@
|
|||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
USER_HEADER_SEARCH_PATHS = "";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
VALID_ARCHS = "armv7 armv7s";
|
||||
VALID_ARCHS = "armv7 armv7s i386";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
name = Release;
|
||||
|
|
Loading…
Reference in New Issue