Hi,
it seems that there's a problem when using ptr_for_handle with SOUND* objects.
Please take a look at this little prg:
#include <default.c>
#include <acknex.h> // Pure Mode
void main() {
video_mode = 8;
video_depth = 32;
video_screen = 2;
level_load(NULL);
wait(1);
SOUND* snd = snd_create("cricket.ogg");
if (ptr_for_handle(handle(snd)) == NULL) {
diag("\nptr_for_handle returns NULL");
}
snd_loop(snd, 100, 0);
while (1) {
wait(1);
}
}
This always prints me "ptr_for_handle returns NULL" either with an ogg or with a wav file, but the sound is played without any problem (so no problem with snd_create).
You can check it yourself here:
www.infinite-dreams.de/3dgs/ptrForHandle-issue.rarRegards,
Pegamode.