• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code Failed to load audiogroup2.dat

funkygallo

Member
Hi,
I don't know if is the right section to put my problem.

By the way until yesterday, I have my main music loaded and played
Today I try to build my game using the yyc option, but I stopped before it end

Now I can't hear the music and this is the error
Audio group 1 -> Loading...
Failed to load audiogroup2.dat
Audio group 1 -> Loaded


This is my code and obviously the snd_rome is part of background_music group

[create]
Code:
audio_group_load(sound_fx);
audio_group_load(background_music);
  
music_playing = snd_rome;

music_volume = 1;
fx_volume = 1;
audio_group_set_gain(background_music,1000,0);
[async save/load]
Code:
if audio_group_is_loaded(background_music)
 {
    audio_play_sound(music_playing,1,true);
 }
 
if audio_group_is_loaded(sound_fx)
 {
  sfx_loaded = true;
 }
Please note that if I comment the line if audio_group_is_loaded(background_music) the music is played.

Any hint?
 

funkygallo

Member
Ok fixed by myself after some tests.
The solution was delete music and audio group.
Create a new audio group with DIFFERENT name. Add the music.
 
Top