Page 1 of 1

voice channel doesn't work with play or renpy.music.play

Posted: Thu Dec 30, 2010 4:52 am
by jack_norton
Sorry about the posts but I'm adding some new stuff and have found some really strange behaviours. I have added a voice button in preferences. I use voices only in combat. If I try the "test voice" button in preferences, it works fine, I can hear the voice:

Code: Select all

            frame:
                style_group "pref"
                has vbox
                label _("Voice Volume")
                bar value Preference("voice volume")
                textbutton "Test" action Play("voice", "voice/rebecca_criticalhit01.ogg") style "soundtest_button"
however if I try calling the voice in the game script with:

Code: Select all

play voice "voice/rebecca_criticalhit01.ogg"
I hear nothing. Obviously if I use another channel like "sound" or "music" it works:

Code: Select all

play sound "voice/rebecca_criticalhit01.ogg"
what I'm doing wrong ??

Re: voice channel doesn't work with play or renpy.music.play

Posted: Thu Dec 30, 2010 10:28 am
by PyTom
Voice isn't a traditional channel, like sound or music. It has some additional logic (so the voices end when the users click past them). Use "voice" rather than "play voice".

Re: voice channel doesn't work with play or renpy.music.play

Posted: Thu Dec 30, 2010 10:47 am
by jack_norton
ok thanks :)