Ren'Py [solved] video sound playing through multiple channels

Tribe

Member
Game Developer
May 5, 2021
221
480
I'm putting what hair I left out of my skull and I'm at my wit's end.
I'm assigning videos to specific channels and channels to mixers but everything is coming out of the music channel AND the newly registered channel.
Sometimes they don't even align, causing an echo.

I had a similar issue before and Anon suggested using config.single_movie_channel as a solution, but this aint that, believe me. I need help please.

Python:
init python:
    setattr(store, "name_of_video", Movie(size=(1280,720), play="name_of_video", channel="dope_channel"))
  
    renpy.music.register_channel("dope_channel", mixer="dope_channel_mixer", loop=True, stop_on_mute=False, tight=False, movie=True)
  
    def Dope_Mixer_Controler(value=None):
        if value is None:
            return MixerValue('dope_channel_mixer')
        else:
            return SetMixer('dope_channel_mixer', value)

    dope_channel_var  = Cock_Hero_Controler("dope_channel_mixer")


### Preference Screen ###
screen preferences():

    tag menu

    use game_menu(_("Preferences"), scroll="viewport"):

        vbox:
            if config.has_music:
                label _("Music Volume")

                hbox:
                    bar value Preference("music volume")

            if config.has_sound:

                label _("Sound Volume")

                hbox:
                    bar value Preference("sound volume")

                if config.sample_sound:
                    textbutton _("Test") action Play("sound", config.sample_sound)
                  
            label _("Dope Sounds")

            hbox:
                bar value Dope_Mixer_Controler()


label whatever:
    "Some text."
    show expression getattr(store, "name_of_video") as vid1 with dissolve
  
    call screen some_screen
 

Tribe

Member
Game Developer
May 5, 2021
221
480
I was registering the channel after storing the file so 'dope_channel' was being defaulted to music.
Thanks to anyone and everyone who took time to consider my query.