public UserGetVoiceResult GetVoice(bool wantCompressed, System.IntPtr destBuffer, uint destBufferSize, bool wantUncompressed, System.IntPtr uncompressedDestBuffer, uint uncompressedDestBufferSize, uint uncompressedVoiceDesiredSampleRate)
        {
            UserGetVoiceResult result = new UserGetVoiceResult();

            result.Result = GetVoice(wantCompressed, destBuffer, destBufferSize, out result.BytesWritten, wantUncompressed, uncompressedDestBuffer, uncompressedDestBufferSize, out result.UnCompressedBytesWritten, uncompressedVoiceDesiredSampleRate);

            return(result);
        }
        public UserGetVoiceResult GetVoice(bool wantCompressed, System.IntPtr destBuffer, uint destBufferSize, bool wantUncompressed, System.IntPtr uncompressedDestBuffer, uint uncompressedDestBufferSize, uint uncompressedVoiceDesiredSampleRate)
        {
            UserGetVoiceResult result = new UserGetVoiceResult();

            result.Result = GetVoice(wantCompressed, destBuffer, destBufferSize, out result.BytesWritten, wantUncompressed, uncompressedDestBuffer, uncompressedDestBufferSize, out result.UnCompressedBytesWritten, uncompressedVoiceDesiredSampleRate);

            return result;
        }