Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play Newly Added OGG Sound #15913

Closed
Cythium opened this issue Mar 16, 2025 · 1 comment
Closed

Play Newly Added OGG Sound #15913

Cythium opened this issue Mar 16, 2025 · 1 comment

Comments

@Cythium
Copy link

Cythium commented Mar 16, 2025

Problem

I've been looking for core.sound_play() to play newly added OGG files in the mod directory. I've been tried to make a command to play the OGG music, it plays existing OGG files, but not newly added ones I had copied without reloading the game.

Solutions

Make the core.sound_play() be able to play newly added OGG files.

Alternatives

Nothing else.

Additional context

Perhaps, if there's a way to do this happen, there might be an idea to create music player node, with dynamically added OGG sound in the mod directory.

@Cythium Cythium added the Feature request Issues that request the addition or enhancement of a feature label Mar 16, 2025
@appgurueu
Copy link
Contributor

This is already possible with dynamic media. You just have to inform Luanti of the new media files yourself (you could hook that up to inotify or something if you're fine with your mod having to be trusted).

@sfan5 sfan5 added @ Script API Question and removed Feature request Issues that request the addition or enhancement of a feature Possible close labels Mar 16, 2025
@sfan5 sfan5 closed this as completed Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants