Ejemplo n.º 1
0
void close_ogg_file(OGGFILE *ogg) {
  if (ogg) {
    pack_fclose(ogg->f);
    alogg_destroy_oggstream(ogg->s);
    free(ogg);
  }
}
Ejemplo n.º 2
0
  void destroy()
  {
    if (!done)
      alogg_stop_oggstream(stream);

    alogg_destroy_oggstream(stream);
    stream = NULL;
    if (buffer != NULL)
      free(buffer);
    buffer = NULL;
    pack_fclose(in);
  }
Ejemplo n.º 3
0
void MYOGG::internal_destroy()
{
    if (!done)
        alogg_stop_oggstream(stream);

    alogg_destroy_oggstream(stream);
    stream = NULL;
    if (buffer != NULL)
        free(buffer);
    buffer = NULL;
    pack_fclose(in);

    _destroyThis = false;
    done = 1;
}