C# Класс ValveResourceFormat.ResourceTypes.Sound

Наследование: Blocks.ResourceData
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
PackageInt ( uint source, int length ) : byte[]

Описание методов

ExtractSub() публичный статический Метод

public static ExtractSub ( uint l, byte offset, byte nrBits ) : uint
l uint
offset byte
nrBits byte
Результат uint

GetSound() публичный Метод

Returns a fully playable sound data. In case of WAV files, header is automatically generated as Valve removes it when compiling.
public GetSound ( ) : byte[]
Результат byte[]

GetSoundStream() публичный Метод

Returns a fully playable sound data. In case of WAV files, header is automatically generated as Valve removes it when compiling.
public GetSoundStream ( ) : MemoryStream
Результат System.IO.MemoryStream

Read() публичный Метод

public Read ( BinaryReader reader, Resource resource ) : void
reader System.IO.BinaryReader
resource Resource
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string