EDIT: I think it’s a bug in VorpleStartPlaylist() and I think I sorted out the fix. See the next reply in this topic for details.
VorplePlaySoundEffect() works fine, but VorpleStartPlaylist() causes the interpreter to freeze outright, no error, no console output. Perhaps I’m setting up the table incorrectly? Please advise
Online example showing the problem, type “sing” to hear a sound, type “jump” to crash the terp:
Vorple Sound Test
The source code:
Constant Story "Hello, Inform 6 Vorple World";
Include "vorple.h";
Include "parser.h";
Include "verblib.h";
Include "vorple-multimedia.h";
Include "grammar.h";
Array jump_table table 1;
Array sing_string string "sing.mp3";
[ Initialise ;
location = room;
VorpleInitialise();
jump_table-->1 = "jump.mp3";
];
Object room "The Room"
with description "You're in a nondescript room.",
before [;
Sing:
SingRoutine();
"Command successful.";
Jump:
JumpRoutine();
"Command successful.";
],
has light;
[ JumpRoutine;
VorpleStartPlaylist(jump_table, PLAYLIST_FROM_START);
];
[ SingRoutine;
VorplePlaySoundEffect("sing.mp3");
];
Screenshot:
After the call to VorpleStartPlaylist, no more output, no more input…