An example that shows how could a volume adjuster for sound effects and music contained within a game file be made in Game Maker 8.1 and Game Maker: Studio.
If you are using the example in Game Maker: Studio, then please keep in mind that it uses the legacy audio system instead of the new system.