search for: closefn

Displaying 2 results from an estimated 2 matches for "closefn".

Did you mean: close_fn
2014 Feb 02
1
Trouble implementing ov_callbacks, endless loop calling seek_func
...>seekAbsolute( (off_t)offset ); break; case SEEK_CUR: sourceFile->mStream->seekRelative( (off_t)offset ); break; case SEEK_END: sourceFile->mStream->seekAbsolute( (off_t)( - offset ) ); break; default: CI_ASSERT_NOT_REACHABLE(); return -1; } return 0; } int SourceFileImplOggVorbis::closeFn( void *datasource ) { return 0; } long SourceFileImplOggVorbis::tellFn( void *datasource ) { auto sourceFile = (SourceFileImplOggVorbis *)datasource; long pos = sourceFile->mStream->tell(); return pos; } The source file for this code can also be found here<https://github.com/richardeak...
2014 Feb 02
0
unsubscribe
...ekRelative( (off_t)offset ); > break; > case SEEK_END: > sourceFile->mStream->seekAbsolute( (off_t)( - offset ) ); > break; > default: > CI_ASSERT_NOT_REACHABLE(); > return -1; > } > > return 0; > } > > int SourceFileImplOggVorbis::closeFn( void *datasource ) > { > return 0; > } > > long SourceFileImplOggVorbis::tellFn( void *datasource ) > { > auto sourceFile = (SourceFileImplOggVorbis *)datasource; > > long pos = sourceFile->mStream->tell(); > > return pos; > } > > The source...