Facepunch.Steamworks Wiki

Steamworks.SteamUser.DecompressVoice

Syntax

static int DecompressVoice( System.IO.Stream input, int length, System.IO.Stream output )

Description

Decodes the compressed voice data returned by GetVoice. The output data is raw single-channel 16-bit PCM audio.The decoder supports any sample rate from 11025 to 48000.

Arguments

System.IO.Stream input
int length
System.IO.Stream output

Returns

int

Syntax

static int DecompressVoice( byte[] from, System.IO.Stream output )

Arguments

byte[] from
System.IO.Stream output

Returns

int