public void destroyAudioCodec(AudioCodec codec) { IntPtr codecPointer = codec.Pointer; codecManager.deleteWrapper(codec.Pointer); OpenALManager_destroyAudioCodec(Pointer, codecPointer); }
public double getDuration(Stream soundStream) { AudioCodec codec = openALManager.createAudioCodec(soundStream); double duration = codec.Duration; openALManager.destroyAudioCodec(codec); return(duration); }
private void destroyWrapper(AudioCodec source) { source.delete(); }
public Sound createStreamingSound(AudioCodec codec) { return(new Sound(OpenALManager_createStreamingSoundCodec(Pointer, codec.Pointer))); }
public Sound createStreamingSound(AudioCodec codec, int bufferSize, int numBuffers) { return(new Sound(OpenALManager_createStreamingSound2Codec(Pointer, codec.Pointer, bufferSize, numBuffers))); }