Request for help: JSON protocol for Glk sound

Whoops, yes. I often mix up which returned int is the error code.

Thanks for working on this. If this gets implemented to parchment, would that allow games like Light My Way Home (which I just played) to play music online (it already works in the offline interpreter), or would additional efforts be needed?

This updates and events look great! When I was working on this stuff, I remember there was one glk thing for sending multiple updates at once; is that handled with the arrays?

Yeah it should ideally Just Work. Though one potential complication is that browsers won’t play sounds without you interacting with the page first (to stop annoying ads etc). So if a game wants to play sounds from the very beginning that might not work.

I’m also not sure I’ll add MOD support, or at least not at the beginning.

glk_schannel_play_multi will work, it will just send multiple updates in the protocol.

1 Like

I think MOD support not working is fine, so many browser are picky about formats (mp3s are the only things that work for me on ios)

Ugh. I didn’t realise iOS Safari doesn’t support Ogg Vorbis. Well there will be a way to make it work.

1 Like

I’ve added basic sound support to Parchment! Details in the Parchment testing topic: "Async" Parchment update: ready for testing (Oct 2024) - #31 by Dannii

I’ve removed url from PlayOperation. Non-blorb sounds will have to be given sound IDs in order to be played.

4 Likes