Jump to content

GM: Studio, issues with sound?


old
 Share

Recommended Posts

Hello everyone,

 

I am having issues with GM: Studio and sound on Android devices. Many sponsors have rejected our games because of the sound issues (especially on native browser) and I was wondering how the other developers that are using GM: Studio addressed this issue?

Link to comment
Share on other sites

can you guys tell me which format works on native browsers

Hey, for native Android browser, try using the legacy audio system. I use Compressed format (Streamed) for background music and Compressed (un-compress on load) for sound effects.

Link to comment
Share on other sites

Found this for you Sandy, is this what you meant? http://stackoverflow.com/questions/14701951/javascript-detect-android-native-browser You could do it with a javascript extension.

 

Hey since it's relevant: I noticed that Game Maker appeared to have converted all my .ogg into .wav files, does this create a larger file size for the project?

Link to comment
Share on other sites

If the browser is using WebGL, use the new audio engine. If the browser is NOT using WebGL, then use the legacy sound engine. If you use auto detect, set up some sound scripts like so..

if(audio_system() == audio_old_system)then //No WebGL - So use old system.
{
      sound_play(argument0); //Play legacy sound
}
else
{
      audio_play_sound(argument0, 0, false); //Play sound with new engine
}

If you are using 8-bit/chiptune style audio, you can down sample the audio and choose the lowest quality to reduce the size of the audio files. I reduced a 2mb song to 200kb this way and the quality is still decent. The audio even works on my cheap $30 LG test phone on the android stock browser by using this method.

Link to comment
Share on other sites

Hey, for native Android browser, try using the legacy audio system. I use Compressed format (Streamed) for background music and Compressed (un-compress on load) for sound effects.

 

This is what is stated on YYG Tech blog...check under sound... https://www.yoyogames.com/tech_blog/30

 

 

Also, I dont see the point to make .wav files since GM after compiling create both .mp3 and .ogg files. I didnt see an option in GM to use just .wav files. Did I missed something? Is there an option for that?

Link to comment
Share on other sites

  • 2 months later...

What about freaking music taking forever to load? I reduced my total game size to less than 3mb with sounds and music and still I have to wait 10 to 15 seconds for music to load. With sounds but no music it loads in about 3 to 5 seconds. What setting do you guys suggest for music, should it be uncompressed like the rest of the sounds? What about audio channels, is there some pointers on that?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...