Steamworks.SteamUser.DecompressVoice C# (CSharp) Method

DecompressVoice() public static method

Decompresses a chunk of compressed data produced by GetVoice().

nBytesWritten is set to the number of bytes written to pDestBuffer unless the return value is k_EVoiceResultBufferTooSmall.

In that case, nBytesWritten is set to the size of the buffer required to decompress the given

data. The suggested buffer size for the destination buffer is 22 kilobytes.

The output format of the data is 16-bit signed at the requested samples per second.

If you're upgrading from an older Steamworks API, you'll want to pass in 11025 to nDesiredSampleRate

public static DecompressVoice ( byte pCompressed, uint cbCompressed, byte pDestBuffer, uint cbDestBufferSize, uint &nBytesWritten, uint nDesiredSampleRate ) : EVoiceResult
pCompressed byte
cbCompressed uint
pDestBuffer byte
cbDestBufferSize uint
nBytesWritten uint
nDesiredSampleRate uint
return EVoiceResult
		public static EVoiceResult DecompressVoice(byte[] pCompressed, uint cbCompressed, byte[] pDestBuffer, uint cbDestBufferSize, out uint nBytesWritten, uint nDesiredSampleRate) {
			InteropHelp.TestIfAvailableClient();
			return NativeMethods.ISteamUser_DecompressVoice(pCompressed, cbCompressed, pDestBuffer, cbDestBufferSize, out nBytesWritten, nDesiredSampleRate);
		}