search for: tellfn

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

Did you mean: tell
2014 Feb 02
1
Trouble implementing ov_callbacks, endless loop calling seek_func
...Stream->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/richardeakin/Cinder-Audio2/blob/85126bdddc69110d6ea8bbd982bc11ff20d536d3/src/cinde...
2014 Feb 02
0
unsubscribe
...t;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. > > Thanks a ton, > Rich > > > ___...