[Android] Audio Decoding Issues Discussion


#81

Could you send me a test case for reproducing this issue? Thanks.


#82

Hi,

I am just zipping the folder for my extra games & then putting it in Internal storage /Android/obb/com.test.games/ main.1.com.test.game.obb in the zip i am including sounds & texture in First time testing.

Second time testing i removed the sound & let it go with the apk & inside the obb i just kept the textures.

But in both the cases sound didnt work. When i go to the folder & rename the obb file then sound starts woking for the main scene & all the sounds inside apk & apk is not changed or recompiled.


#83

I have also changed the Android & external.zip folder


#84

Hi, I have updated the cmake to build the vorbis and pvmp3 decoder:

vorbis (put it in the same folder as the android.mk file: external/android-specific/pvmp3dec | tremolo)
https://pastebin.com/n997qPm8

pvmp3
https://pastebin.com/4SyhJVMq

NOTE: for the pvmp3, there are some options in the android.mk file that I don’t know how to translate in CMake language, if anybody could help:

LOCAL_CFLAGS += -Werror
LOCAL_CLANG := true
LOCAL_SANITIZE := signed-integer-overflow
...
LOCAL_ARM_MODE := arm

And if you want to add them to the cocos build, just change the cocos/CMakeLists.txt from

target_link_libraries(cocos2d cocos2dInternal cpufeatures)

to

target_link_libraries(cocos2d cocos2dInternal cpufeatures pvmp3dec vorbisidec)

and add (

if(ANDROID)
  include_directories(../external/android-specific/pvmp3dec/src)
  include_directories(../external/android-specific/pvmp3dec/include)
  include_directories(../external/android-specific/tremolo)
  include_directories(../external/android-specific/tremolo/Tremolo)
endif(ANDROID)

after those line:

  #todo: provide prebuild versions of the xx libs for all platforms
  include_directories(../external/xxtea)
  include_directories(../external/clipper)

it should build the library and put them in (tremolo | pvmp3dec)/library/lib


#85

Hi, I have a crash in the engine: