[Vorbis-dev] ov_open error !

null null at zeroxsoft.com
Sun Dec 5 21:01:39 PST 2004


#include <stdio.h>
#include "vorbis/codec.h"
#include "vorbis/vorbisfile.h"
#include <io.h>
#include <fcntl.h>

#pragma comment(lib, "vorbisfile_d")

int main(int argc, char **argv)
{
	FILE		*fp;
	OggVorbis_File	obf;
	
	if(argc < 1)
		return -1;

	if((fp = fopen("f:\\testogg.ogg", "rb")) == NULL)
	{
		printf("Open Files Error !\n");
		return -1;
	}

	if(ov_open(fp, &obf, NULL, 0) < 0)
	{
		printf("OggVorbis File Open Error ~\n");
		return -1;
	}
}
run time error when ov_open call :(, help me !
-run in win32 os 


More information about the Vorbis-dev mailing list