MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / AudioSample

Class AudioSample

extensions/olcPGEX_Sound.h:131–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129 // A representation of an affine transform, used to rotate, scale, offset & shear space
130 public:
131 class AudioSample
132 {
133 public:
134 AudioSample();
135 AudioSample(std::string sWavFile, olc::ResourcePack *pack = nullptr);
136 olc::rcode LoadFromFile(std::string sWavFile, olc::ResourcePack *pack = nullptr);
137
138 public:
139 OLC_WAVEFORMATEX wavHeader;
140 float *fSample = nullptr;
141 long nSamples = 0;
142 int nChannels = 0;
143 bool bSampleValid = false;
144 };
145
146 struct sCurrentlyPlayingSample
147 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected