Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Vorbis Vorbis
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 25
    • Issues 25
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Xiph.Org
  • VorbisVorbis
  • Issues
  • #306
Closed
Open
Created Jan 13, 2003 by andrew@andrew

Get exception in OS Kernel when try to open a file

I am the author of a freeware game that runs in Windows and I am evaluating Ogg 
Vorbis as a sound file format to support in the game engine. I am trying to use 
the vorbisfile API to open a .ogg file and decode it to PCM for use as a 
DirectSound buffer. Unfortunately I fell at the first hurdle :( When I try to 
use ov_open to access a file I have opened, I get an exception in kernel32.dll

The code I'm using in my test prog is:

// oggtest.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "vorbis\vorbisfile.h"

int main(int argc, char* argv[])
{
	FILE *file;
	OggVorbis_File vf;

	if ((file = fopen("test.ogg", "rb")) == NULL)
		return -1;

	if (ov_open(file, &vf, NULL, 0) < 0)
		return -1;

	ov_clear(&vf);

	return 0;
}


I hope you can answer what the problem is or I won't be able to add this 
support :/
Assignee
Assign to
Time tracking