Skip to content

_play_sound in pyfunny.py ignores the filename and always plays a generic beep #2

@AkshajSinghal

Description

@AkshajSinghal

The function checks if the sound file exists on disk, but then calls play_alarm() which plays a hardcoded system sound, ignoring the filename completely. So regardless of what sound file the user has configured for their joke character (cow-sound.mp3, trex-sound.mp3, etc.), they always hear the same generic alarm beep.

There is even a comment in the code acknowledging this limitation, but the issue is that the settings UI presents sound selection as a meaningful user-facing feature when it actually does nothing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions