Displaying 1 result from an estimated 1 matches for "com_vorbis_ogg_helloworld".
2000 Dec 13
2
ov_clear segfaults?
...lear if I have called ov_read?
If I comment out the ov_clear, everything works fine. This is good, as it
means I'm on the right track and I at least *partially* know what I'm
doing. :)
Here's the code [try and ignore all the Java required stuff]:
#include <jni.h>
#include "com_vorbis_ogg_HelloWorld.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "vorbis/codec.h"
#include "vorbis/vorbisfile.h"
#ifdef _WIN32
#include <io.h>
#include <fcntl.h>
#endif
JNIEXPORT void JNICALL Java_com_vorbis_ogg_HelloWorld_displayHelloWo...