Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
To play sound, please use: ```js let player = global.display.get_sound_player(); let file = Gio.File.new_for_path('PATH TO THE FILE'); player.play_from_file(file, 'title', null); ``` Or play form theme: ``` player.play_from_theme('sound name', 'title', null); ```
any other option?
What do you mean? Doesn't the default sound player work for you?
No brother, I'm trying. sound player is initializing but not playing from theme or path. I might be missing something. Let me try more debugging.
That's how GNOME Shell is playing sound. For example: https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/03e5d4bdd89b695e4699862cd8efe61a907aa37c/js/misc/breakManager.js#L762-764
Problem was in my OS settings not in the code. After changing this - 'Settings>Sound>Alert sound>None' to other than 'none' fixed problem.