static int remix_sndfile_destroy (RemixEnv * env, RemixBase * base) { RemixSndfileInstance * si = (RemixSndfileInstance *)base->instance_data; if (si->file != NULL) sf_close (si->file); remix_free (si); remix_free (base); return 0; }
static int remix_track_destroy (RemixEnv * env, RemixBase * base) { RemixTrack * track = (RemixTrack *)base; remix_destroy_list (env, track->layers); remix_free (track); return 0; }