Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

sound in passages

Hi folks,

I'm using Sugarcube in Twine2. I've got a series of passages where different sounds should play.
<<cacheaudio "childsnightmare" "https://ia700706.us.archive.org/4/items/ChildsNightmare/ChildsNightmare.mp3">>;
<<cacheaudio "akeley" "https://ia801408.us.archive.org/16/items/Akeleys_Wax_Cylinder_Recording/Akeley_MiGo_Ritual_64kb.mp3">>;

God bless the internet archive.

Anyway, when the player gets to the appropriate passage, the audio plays:
<<audio "childsnightmare" fadein >>

The problem is, sometimes, the initial caching doesn't work, and the player gets an error message when they get to that passage. I'm thinking the issue is probably the size of the audio files in the first place. I came across Twine Audio via this profhacker post which, if the demo game is any indication, handles audio extremely well and probably solves my issue. The thing is, it's all Twine 1.4. So I expect if I hunt through the forum I'll find guidance about migrating macros etc from 1.4 to 2, but I guess what I'm asking is,

- is it simply better to just use very small snippets of audio - maybe break a big file into a number of smaller ones?
- is there a more elegant way of handling audio in Sugarcube, especially if the sound files are hosted at different sites?
- or would it be faster to just have the sound files in the same folder as the twine html? (which would then preclude hosting at philome.la).

Comments

Sign In or Register to comment.