GMS 2 Storing audio files into a folder?

Discussion in 'Programming' started by Goldoche, Sep 9, 2019.

Tags:
  1. Goldoche

    Goldoche Member

    Joined:
    Dec 30, 2016
    Posts:
    33
    Is there a way to store streamed sound files into a folder?

    I found a workaround by using "audio_create_stream()" and putting your sound files into "included files". However, this workaround prevents you from using the "audio_sound_gain()" function unless you set the time parameter to 0. This makes this workaround unusable in my case.

    Are there any other solutions possible?

    The reason I want streamed sound files is to take a lesser amount of RAM. 150MiB to 50MiB in my case. But then when you build your game all the .ogg files are directly in the root folder of your game, which is messy.
     
  2. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,447
    @YellowAfterlife has a tool that does exactly this.
    https://yellowafterlife.itch.io/gamemaker-reroute-audio
     
  3. Goldoche

    Goldoche Member

    Joined:
    Dec 30, 2016
    Posts:
    33
    rIKmAN likes this.
  4. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,447
    Ah OK fair enough, multiple platforms weren't mentioned in OP so I thought I'd suggest it as it's the only solution I'm aware of.

    I also hate the way everything gets dumped in the root folder.
     
  5. Goldoche

    Goldoche Member

    Joined:
    Dec 30, 2016
    Posts:
    33
    Thanks anyway, I appreciate it.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice