![]() |
SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
|
#include <XWV.h>

Public Types | |
| enum class | Version : uint32_t { V0 = 20 , V1 = sourcepp::parser::binary::makeFourCC("XWV1") , V4 = sourcepp::parser::binary::makeFourCC("XWV ") } |
| enum class | Format : uint8_t { PCM = 0 , XMA = 1 , XMA2 = 2 , MP3 = 3 } |
| enum class | Frequency : uint8_t { HZ_11025 = 0 , HZ_22050 = 1 , HZ_44100 = 2 } |
Public Member Functions | |
| XWV (std::span< const std::byte > xwvData) | |
| XWV (const std::filesystem::path &xwvPath) | |
| operator bool () const | |
| Version | getVersion () const |
| const std::vector< std::byte > & | getAudioDataRaw () const |
| const std::vector< std::byte > & | getStaticData () const |
| const std::vector< std::byte > & | getValveData () const |
| const std::vector< std::byte > & | getSeekTableData () const |
| uint32_t | getDecodedSampleCount () const |
| int32_t | getLoopStart () const |
| uint16_t | getLoopBlock () const |
| uint16_t | getLeadingSampleCount () const |
| uint16_t | getTrailingSampleCount () const |
| Format | getFormat () const |
| uint8_t | getBitsPerSample () const |
| Frequency | getFrequency () const |
| uint8_t | getChannelCount () const |
| uint8_t | getQuality () const |
Protected Attributes | |
| std::vector< std::byte > | audioData |
| std::vector< std::byte > | staticData |
| std::vector< std::byte > | valveData |
| std::vector< std::byte > | seekTable |
| Version | version |
| uint32_t | decodedSampleCount |
| int32_t | loopStart |
| uint16_t | loopBlock |
| uint16_t | leadingSampleCount |
| uint16_t | trailingSampleCount |
| Format | format |
| uint8_t | bitsPerSample |
| Frequency | frequency |
| uint8_t | channelCount |
| uint8_t | quality |
| bool | opened = false |
|
strong |
|
strong |
|
strong |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |