SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
Loading...
Searching...
No Matches
WAV.cpp File Reference
#include <sndpp/WAV.h>
#include <utility>
#include <BufferStream.h>
#include <sourcepp/FS.h>
Include dependency graph for WAV.cpp:

Go to the source code of this file.

Macros

#define SNDPP_CHUNK_SETUP(ID)
 
#define SNDPP_CHUNK_GETTER(TYPE)
 

Macro Definition Documentation

◆ SNDPP_CHUNK_GETTER

#define SNDPP_CHUNK_GETTER (   TYPE)
Value:
const WAV::Chunk##TYPE* WAV::getChunk##TYPE() const { \
return dynamic_cast<const Chunk##TYPE*>(this->getFirstChunk(WAV::ChunkType::TYPE)); \
}

Definition at line 256 of file WAV.cpp.

◆ SNDPP_CHUNK_SETUP

#define SNDPP_CHUNK_SETUP (   ID)
Value:
auto* ID = new Chunk##ID; \
ID->type = type; \
ptr.reset(ID)