[Python] How to play multiple sounds simultaneously using winsound?

Discussão em 'Python' iniciado por Stack, Julho 3, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to layer multiple sounds on top of each other with the built-in winsound library. I start my 1st sound with

    winsound.PlaySound("test1.wav", winsound.SND_FILENAME | winsound.SND_ASYNC)


    When I try to start my other sound

    winsound.PlaySound("test1.wav", winsound.SND_FILENAME | winsound.SND_ASYNC
    | winsound.SND_NOSTOP)


    I get the not-very-descriptive RuntimeError: Can't play sound.
    How do I fix that?

    Continue reading...

Compartilhe esta Página