Open ghost opened 6 years ago
Would probably be easiest to store the tags and files as some external json file that we check for updates when the utility is called. As part of the json we could keep track of if it should loop, if its a folder... things like that
We could really help add to the ambiance if we made a way to run sound and music files via the console. We could do something like "dnd-gen -play "forest" --loop" where "forest" is a tag to different types of sounds. There's a couple way we can allow anyone to add their own types of sounds, tags, or music to play at certain times, but they are all based off navigating a directory structure.
Example Implementation: We could have a "audio" folder, and each folder has a unique name with a config file inside. This config file has properties for this folder such as "can_loop", "fade_in", "fade_out", "randomize", and other such properties that would be defined for the whole directory. The utility reads in the supplied tag, finds that folder, and creates an audio class with the specified stats to play said file/s.
If I run "dnd-gen -play "tavern"" it would play the audio in the "tavern" folder.
Perhaps this could be done with tags of sorts, but either way this is feasible, and avoids licensing problems with distributing music. Each person can make their own playlists very easily by just dropping in files into the right folder. Plus, you can add new categories, such as "city street" or "laboratory" if you wanted to do a non-fantasy type environment for whatever reason, and the utility would work the same.
Ideas and suggestions welcome!