Displaying 2 results from an estimated 2 matches for "readfn".
Did you mean:
read_fn
2014 Feb 02
1
Trouble implementing ov_callbacks, endless loop calling seek_func
...vious, but I can't see why my seek_func is
being called endlessly. If the file is seekable, I should return 0, right?
If any one can take a look at the following callback functions and see if
they can spot what I'm doing wrong, it'd be much appreciated:
size_t SourceFileImplOggVorbis::readFn( void *ptr, size_t size, size_t
nmemb, void *datasource )
{
auto sourceFile = (SourceFileImplOggVorbis *)datasource;
size_t bytes = size * nmemb;
sourceFile->mStream->readData( ptr, bytes );
return nmemb;
}
int SourceFileImplOggVorbis::seekFn( void *datasource, ogg_int64_t offset,
int when...
2014 Feb 02
0
unsubscribe
...I can't see why my seek_func is being called endlessly. If the file is seekable, I should return 0, right? If any one can take a look at the following callback functions and see if they can spot what I'm doing wrong, it'd be much appreciated:
>
> size_t SourceFileImplOggVorbis::readFn( void *ptr, size_t size, size_t nmemb, void *datasource )
> {
> auto sourceFile = (SourceFileImplOggVorbis *)datasource;
>
> size_t bytes = size * nmemb;
> sourceFile->mStream->readData( ptr, bytes );
>
> return nmemb;
> }
>
> int SourceFileImplOggVorbis::...