Sign in to follow this  

libvorbisfile callbacks

This topic is 4734 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ive written a set of callbacks for using std::fstream for file loading, heres what i created: http://www.rafb.net/paste/results/KyN7uT60.html when i call ov_open_callbacks() it returns OV_EFAULT, i traced through and found it quits after my read function is called aboutthe 3rd time... i know the file is valid (tested with winamp) and i know the fstream is open (i have assert(MyFile.is_open()) before my ov_open_callbacks() gets called) anyone who knows whats wrong with my callbacks, let me know thanks a ton -Dan

Share this post


Link to post
Share on other sites
thanks, i actually have breakpoints throught that and ive checked for null (plus i think id end up with an access violation rather than a returned error)
(sorry for the über necro, i was gone all week)
anyone else have any ideas?
thanks
-Dan

Share this post


Link to post
Share on other sites
Casting the FromWhere is the only thing that looks suspect to me. I couldn't find anything that stated they are interchangable, and I even found something that shows them as being different: Link.

edit: I mean different across C compilers.

Share this post


Link to post
Share on other sites
vc 7.1

xiosbase

static const _Seekdir beg = (_Seekdir)0;
static const _Seekdir cur = (_Seekdir)1;
static const _Seekdir end = (_Seekdir)2;



stdio.h

#define SEEK_CUR 1
#define SEEK_END 2
#define SEEK_SET 0



i dont think thats the problem , thanks again

-Dan

Share this post


Link to post
Share on other sites

This topic is 4734 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this