public virtual void Dispose() { if (oggPacket != null) { oggPacket.Dispose(); oggPacket = null; } if (vorbisDSPState != null) { vorbisDSPState.Dispose(); vorbisDSPState = null; } if (vorbisBlock != null) { vorbisBlock.Dispose(); vorbisBlock = null; } if (vorbisInfo != null) { vorbisInfo.Dispose(); vorbisInfo = null; } if (vorbisComment != null) { vorbisComment.Dispose(); vorbisComment = null; } if (vorbisStreamState != null) { vorbisStreamState.Dispose(); vorbisStreamState = null; } }
// public AudioDriver() { vorbisInfo = new vorbis.Info(); vorbisComment = new vorbis.Comment(); oggPacket = new ogg.Packet(); }