| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected