C# Class ValveResourceFormat.ResourceTypes.Sound

Inheritance: Blocks.ResourceData
Show file Open project: SteamDatabase/ValveResourceFormat

Public Methods

Method Description
ExtractSub ( uint l, byte offset, byte nrBits ) : uint
GetSound ( ) : byte[]

Returns a fully playable sound data. In case of WAV files, header is automatically generated as Valve removes it when compiling.

GetSoundStream ( ) : MemoryStream

Returns a fully playable sound data. In case of WAV files, header is automatically generated as Valve removes it when compiling.

Read ( BinaryReader reader, Resource resource ) : void
ToString ( ) : string

Private Methods

Method Description
PackageInt ( uint source, int length ) : byte[]

Method Details

ExtractSub() public static method

public static ExtractSub ( uint l, byte offset, byte nrBits ) : uint
l uint
offset byte
nrBits byte
return uint

GetSound() public method

Returns a fully playable sound data. In case of WAV files, header is automatically generated as Valve removes it when compiling.
public GetSound ( ) : byte[]
return byte[]

GetSoundStream() public method

Returns a fully playable sound data. In case of WAV files, header is automatically generated as Valve removes it when compiling.
public GetSoundStream ( ) : MemoryStream
return System.IO.MemoryStream

Read() public method

public Read ( BinaryReader reader, Resource resource ) : void
reader System.IO.BinaryReader
resource Resource
return void

ToString() public method

public ToString ( ) : string
return string