C# Class ValveResourceFormat.ResourceTypes.Sound

Inheritance: Blocks.ResourceData
Afficher le fichier Open project: SteamDatabase/ValveResourceFormat

Méthodes publiques

Méthode 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

Méthode Description
PackageInt ( uint source, int length ) : byte[]

Method Details

ExtractSub() public static méthode

public static ExtractSub ( uint l, byte offset, byte nrBits ) : uint
l uint
offset byte
nrBits byte
Résultat uint

GetSound() public méthode

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

GetSoundStream() public méthode

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

Read() public méthode

public Read ( BinaryReader reader, Resource resource ) : void
reader System.IO.BinaryReader
resource Resource
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string