1. Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

Question - Code Failed to load audiogroup2.dat

Discussion in 'GameMaker Studio 2 Community Tech Support' started by funkygallo, Feb 11, 2020.

  1. funkygallo

    funkygallo Member

    Joined:
    Jun 20, 2016
    Posts:
    98
    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?
     
  2. funkygallo

    funkygallo Member

    Joined:
    Jun 20, 2016
    Posts:
    98
    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.
     

Share This Page