Construct + Appmobi Sound Issue

0 favourites
  • 11 posts
From the Asset Store
Casino? money? who knows? but the target is the same!
  • Hi all,

    I developed a game in C2 and generated an android package using appmobi.

    During the game there is a background music and sound effects. The problem is that while playing music, when I play a sfx, the music stops.

    I read somewhere that there is an issue for multichannel sound in html5, is that true? Please does anyone know a workaround to this problem?

    • I exported the project as html5 and imported in appmobi
    • I tried Appmobi export with directcanvas in C2 but I cannot make the game even run in the device (Black screen after splash screen)

    Thank you all.

    Tomas

  • As far as I know C2's appmobi still in development stage, where appmobi can only produce one sound at a time. CMIIW but directcanvas is only for iOS not for android. Try cocoonjs export for Android deployment.

    Sorry for my bad english

  • I tried to resolve this issue many times but still I can't figure where the problem is...

    Appmobi can play more than a sound, but on android music stops after 4-5 secs or when another sound is triggered.

    Checking logcats you can see that bg music on appmobi is not streamed but preloaded on an audiobuffer with a ridicolous size (about 100k) causing all the sound issues you are experiencing.

    I tried everything. I checked source code of appmobi containers, tried to change the c2runtime.js generated by c2, and after two days of swearing I found the solution. I switched to phonegap.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks for the responses.

    So Knifegrinder, you did not find those problems with phonegapp? I saw somewhere that it had problems with audio too...one of the reasons I decided for appmobi. But if it solved the problem, I will try that for sure.

    Tomas

  • Well... Phonegap is a strange beast.

    I suggest you to work with phonegap 1.7 and compile your apk by yourself through eclipse.

    I use this configuration because i found it the best way to test apps on my phone with a good compatibility with c2 code. What you see in your browser is almost what you get on the phone.

    1.7.x is currently the best version for c2 projects.

    Then, since 1.8 they made some changes. Accelerometer stopped working as intended and now, with 2.0 even audio has some problems.

    Please note that playing audio on phonegap will impact heavily on FPS making your game choppy and barely playable.

    The only reason to use phonegap is to test your project on a real device with 99% compatibility while waiting for something more performing like cocoonJS or directcanvas.

    Personally, I'd never release an official app compiled with phonegap, the gap with native applications is embarassing.

  • AppMobi supports polyphonic audio, so this is an odd issue. Are you sure you correctly categorised your music tracks in the music folder and your sound effects in the sound folder?

  • Ashley

    I'm starting to think that this issue is platform dependent...

    My logcats on android when I try to play a file in the music folder with appmobi scream in red about a soundpool buffer overflow.

    I wonder why bg tracks on appmobi are played through soundpool API instead of mediaplayer API.

    No problems using the same calls to appmobi.player with iOS

  • I tried putting music and sound effects in both Music and Sounds folders. But no luck. Always the same problem...

  • Hi,

    I exported to CocoonJs and tried it with the App Launcher. It rocks! Fast, everything works (no more sound issues), smooth run. Can�t wait for the cloud compilation... does anyone knows where are they releasing it?

    Cheers!

  • Sorry,

    I meant "WHEN they will release it"...

  • Ludei will release this month, i have a chance to use cloud system when they're testing it, :)) it's awesome. Now i have an .apk of my game, and it's navite app. Install and play ! very nice. (Sry for my bad E)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)