Audio plays even when in-game settings are muted(SOLVED)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Geckos
Veteran
Posts: 471
Joined: Fri Aug 17, 2012 8:33 am
Completed: Brilliant Shadows, Perceptions of the Dead, The Phantom Icecream Truck
Projects: Embers of Magic, Pale Spectrum, Perceptions of the Dead
Organization: Ithaqua Labs
Tumblr: geckosart
Deviantart: sitaart
Contact:

Audio plays even when in-game settings are muted(SOLVED)

#1 Post by Geckos » Sat Nov 07, 2015 3:49 pm

I made some custom sound channels so that I could have ambient music, melodic music, sound effects x2 and speech happen all at once.

Code: Select all

init python:
    renpy.music.register_channel("sound", "sound", False, file_suffix=".ogg")
    renpy.music.register_channel("am1", "sound", False, file_suffix=".ogg")
    renpy.music.register_channel("am3", "sound", False, file_suffix=".ogg")
    renpy.music.register_channel("music", "music", True, file_suffix=".ogg")
    renpy.music.register_channel("am2", "music", True, file_suffix=".ogg")
    renpy.music.register_channel("fx", "music", False)
    renpy.music.register_channel("voice", "voice", False, file_prefix="v/", file_suffix=".ogg")
Whenever I mute sound, voice and music in the game, though, it mutes everything except for stuff that I play on the am1, and am3 channels (Could be others, but these are used 99% of the time). Those sound effects play at full volume. This happens both in the developer mode, and from the distributions that I build from it. At least one other has had the same issue.

These are the preference controls for them,

Code: Select all

        bar pos (909, 541) value Preference("sound volume") style "pref_slider"
        bar pos (526, 541) value Preference("voice volume") style "pref_slider"
        bar pos (126, 541) value Preference("music volume") style "pref_slider"
Any thoughts as to what's going on there?
Last edited by Geckos on Sat Nov 07, 2015 4:48 pm, edited 2 times in total.
Image ImageImage

User avatar
BlackDragonHunt
Newbie
Posts: 8
Joined: Fri Oct 09, 2015 6:33 am
Organization: MangaGamer
Contact:

Re: Audio plays even when in-game settings are muted

#2 Post by BlackDragonHunt » Sat Nov 07, 2015 4:42 pm

For your first three channels, the mixer name is (somewhat confusingly) "sfx", not "sound".

User avatar
Geckos
Veteran
Posts: 471
Joined: Fri Aug 17, 2012 8:33 am
Completed: Brilliant Shadows, Perceptions of the Dead, The Phantom Icecream Truck
Projects: Embers of Magic, Pale Spectrum, Perceptions of the Dead
Organization: Ithaqua Labs
Tumblr: geckosart
Deviantart: sitaart
Contact:

Re: Audio plays even when in-game settings are muted

#3 Post by Geckos » Sat Nov 07, 2015 4:47 pm

@BlackDragonHunt
Ooh! That seems to have done the trick. Thanks!
Image ImageImage

Post Reply

Who is online

Users browsing this forum: Bing [Bot]