GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Music wont play

Hello! I have a problem with my background music in my game. I am using wav file (size 13,8mt) but for some reason i can't play the music in gamesalad editor (works fine everywhere else) also all other sound files which are wav files in my game work just fine except this one.

Thanks in advance!

Comments

  • supafly129supafly129 Posts: 453Member, PRO

    when you added other sound files, did you import them as "sounds" or "music"?

    You can only play one music file at a time, so maybe that's the issue. I would see what options are listed when you look at your "Play Music" behavior drop down and make sure nothing that should actually be a sound is in there

  • fatetaletellerfatetaleteller Posts: 40Member, PRO

    @supafly129 When i added play music behavior only option i have is "resume current music" and i checked that all other sounds in the scene are sounds not music.

  • fatetaletellerfatetaleteller Posts: 40Member, PRO

    @supafly129 It seems that i have added my music as sound but still i cannot play it in any way within the editor. For example when i click to play the sound it shows that it is playing it but i cannot hear anything :/ but when i do this with other sounds those work just fine

  • supafly129supafly129 Posts: 453Member, PRO
    edited October 2016

    @fatetaleteller said:
    @supafly129 It seems that i have added my music as sound but still i cannot play it in any way within the editor. For example when i click to play the sound it shows that it is playing it but i cannot hear anything :/ but when i do this with other sounds those work just fine

    hmm maybe the file itself has an issue? when you play the file outside of GS on your computer does it make noise? generally speaking .wav files are not recommended because they take up a lot of space and the difference is so subtle compared to .mp3 which is a significantly smaller format as far as size goes

  • fatetaletellerfatetaleteller Posts: 40Member, PRO

    @supafly129 When i play it outside of GS everything works fine.

  • SocksSocks London, UK.Posts: 12,822Member
    edited October 2016

    @supafly129 said:
    generally speaking .wav files are not recommended because they take up a lot of space and the difference is so subtle compared to .mp3 which is a significantly smaller format as far as size goes

    But the size difference has no bearing on GameSalad as both are converted to MP4, so a 3 minute WAV and the same 3 minute track as an MP3 will both be identical in size when imported to GameSalad.

    The only difference would be a small quality loss with the MP3, but like you say the difference can be subtle (depending on the track), but there's no reason to not use a WAV, imagine you are in GarageBand, you export to WAV, import it to GS, it's converted to MP4, you then throw the WAV into the trash as you don't need it any more, you've gained a little extra quality (compared to MP3) and used up no additional memory.

  • fatetaletellerfatetaleteller Posts: 40Member, PRO

    I am still having this problem and googling has not helped either. At the moment i am waiting for response from gamesalad's customer service.

  • SocksSocks London, UK.Posts: 12,822Member

    @fatetaleteller said:
    I am still having this problem and googling has not helped either. At the moment i am waiting for response from gamesalad's customer service.

    Upload the sound here and I will sort it out for you.

  • fatetaletellerfatetaleteller Posts: 40Member, PRO

    @Socks i can only attach image files

  • SocksSocks London, UK.Posts: 12,822Member

    @fatetaleteller said:
    @Socks i can only attach image files

    You can upload any compressed file.

  • fatetaletellerfatetaleteller Posts: 40Member, PRO

    @Socks Here! Thanks in advance :-)

  • SocksSocks London, UK.Posts: 12,822Member
    edited October 2016

    @fatetaleteller said:
    @Socks Here! Thanks in advance :-)

    When you imported the sound to GS, did you import it as "sound" or "music" ?

    Could you also upload a screenshot of the rule that plays this piece of music.

  • fatetaletellerfatetaleteller Posts: 40Member, PRO

    @Socks I did not get to choose all sounds that i add go to same place with images and stuff. Also i have tried all sorts of rules none of em works like if actor is pressed play sound.. nothing. also when i try to play the sound in the media folder in GS it plays it but i cant hear anything.

  • SocksSocks London, UK.Posts: 12,822Member

    @fatetaleteller said:
    @Socks I did not get to choose all sounds that i add go to same place with images and stuff.

    Not sure what that means, but if you look in your 'Sounds' panel can you tell me what this file has been imported as, music or sound ?

    Sound . . .

    Music . . .

  • supafly129supafly129 Posts: 453Member, PRO

    @Socks said:

    @supafly129 said:
    generally speaking .wav files are not recommended because they take up a lot of space and the difference is so subtle compared to .mp3 which is a significantly smaller format as far as size goes

    But the size difference has no bearing on GameSalad as both are converted to MP4, so a 3 minute WAV and the same 3 minute track as an MP3 will both be identical in size when imported to GameSalad.

    The only difference would be a small quality loss with the MP3, but like you say the difference can be subtle (depending on the track), but there's no reason to not use a WAV, imagine you are in GarageBand, you export to WAV, import it to GS, it's converted to MP4, you then throw the WAV into the trash as you don't need it any more, you've gained a little extra quality (compared to MP3) and used up no additional memory.

    Ah i see, thanks! Never realized that.

    @fatetaleteller can you post a screenshot of the "Play Music" behavior for your Forest song? If you imported that song as "music", it should appear in your "Play Music" dropdown.

  • fatetaletellerfatetaleteller Posts: 40Member, PRO

    @Socks Neither it looks like this.

  • SocksSocks London, UK.Posts: 12,822Member

    WAV file is fine, no issues, no corruption . . . although the dynamic range is quite high, the overall level is very low and the loop is not perfect (800+ samples of silence at the start).

  • fatetaletellerfatetaleteller Posts: 40Member, PRO

    @Socks Any idea what it is about then? It can't be the rule/behavior that i am using because when i press play in editor i can't hear anything which does not happen with other sounds.

  • SocksSocks London, UK.Posts: 12,822Member

    @fatetaleteller said:
    @Socks Neither it looks like this.

    Could you upload a screenshot of the rule that plays this piece of music.

  • fatetaletellerfatetaleteller Posts: 40Member, PRO

    @Socks Here.

  • SocksSocks London, UK.Posts: 12,822Member

    @fatetaleteller said:
    @Socks Here.

    This has been imported as 'sound', I've attached a new WAV (attached below), import that and when asked whether you want sound or 'music', choose 'music'.

  • fatetaletellerfatetaleteller Posts: 40Member, PRO

    @Socks There is no wav file. Just VLC media file (aif.)

  • SocksSocks London, UK.Posts: 12,822Member
    edited October 2016

    @fatetaleteller said:
    @Socks There is no wav file. Just VLC media file (aif.)

    What happened when you tried to import it into GameSalad ?

  • SocksSocks London, UK.Posts: 12,822Member

    WAV attached:

  • SocksSocks London, UK.Posts: 12,822Member
    edited October 2016

    @supafly129 said:
    Ah i see, thanks! Never realized that.

    Whoops, when I said MP4, I meant to say M4A, both MP3 and WAV (and any other incoming format destined to be a 'music' file in GS) will be converted to M4A (AAC).

    So for example a 192kHz, 32bit uncompressed AIFF that is 140MB will end up as a 5MB M4A . . . . and also a crappy 32kHz, 8bit MP3 of the same track that is 1MB will also end up as a 5MB M4A.

  • fatetaletellerfatetaleteller Posts: 40Member, PRO

    @Socks Now it works! What did you do to make it work?

  • SocksSocks London, UK.Posts: 12,822Member

    @fatetaleteller said:
    @Socks Now it works! What did you do to make it work?

    I negotiated with it.

Sign In or Register to comment.