play Audio in different browsers

0 favourites
  • 6 posts
From the Asset Store
Adjusting the game screen for different resolutions (Letterbox scale)
  • Hello,

    perhaps somebody needs some infos how this can be done - even when you're not on a win 7 <img src="smileys/smiley2.gif" border="0" align="middle">

    To play sound in browsers with ogg-support(Firefox,..) and brothers without ogg-support (IE9 on Win7,..) i've done the following:

    1) import the ogg-File in C2

    if (not Win7): 2)convert the ogg-File to .m4a (ie with fre:ac)

    3) import the .m4a File in C2

    C2 gives the m4a file the name soundExample2.m4a so i renamed it back to soundExample.m4a

    <img src="http://dl.dropbox.com/u/31151399/Construct2/Examples/SoundExample/howtoPlaySoundForIEAndOthers.png" border="0">

    hear example

    download capx

    Joe7

  • On Vista, when I import a sound...

    OGG, import works, I can choose the sound, but nothing when I run the game.

    M4A (done with fre:ac, from the ogg), I can import it, but I can't select it when I create the Action > Play sound.

    The file doesn't appear in the list...

    Is there something else I can do ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • the sound must be Mono...

    Of course... my bad...

  • Guicole, as you said, I can also import M4A sound file but I can't select it when I create the Action > Play sound (alert message: "None - import some audio files first" although there is imported M4A file). The M4A sound is done by fre:ac, from the OGG and it is mono but it still cannot be selected!

    But when there is imported an OGG sound then that sound can be selected.

    I'm not sure if this is a bug in C2?

  • You should just import WAV files and Construct 2 will encode them to both OGG and M4A saving you the hassle of doing it yourself (M4A is only done on Windows 7+ though).

    Construct 2 considers Ogg Vorbis files to be your project's audio files, and the M4As are a backup to the Vorbis file for browsers which don't support Ogg Vorbis. So you need the Ogg file first to be able to select it for the Play sound action.

  • can we import Midi as our background music? b ecause midi is small in file size.

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