[Vorbis-dev] Introducing ov_open_callbacksp and ov_clearp
    Armel Asselin 
    armel at mobipocket.com
       
    Wed Sep  8 01:33:55 PDT 2004
    
    
  
Conrad Parker tells:
> wouldn't it be simpler and more general to add constructors,
> destructors and access functions for OggVorbis_File and vorbis_info
> objects?
>From what Monty tells we could maybe call them: ov_create() and ov_destroy()
rather than ov_new/ov_delete
i.e.
EXPORT_C OggVorbis_File * ov_create (){
  return _ogg_malloc(sizeof(OggVorbis_File));
}
EXPORT_C int ov_destroy (OggVorbis_File *vf){
  if (vf) {
	ov_clear(vf);
	_ogg_free(vf);
  }
  return 0;
}
for accessors functions why not :) it's probably more general indeed
Armel
    
    
More information about the Vorbis-dev
mailing list