◆ AudioAsset() [1/2]
| AudioAsset::AudioAsset |
( |
const std::string & |
name, |
|
|
decltype(nchannels) |
desired_channels = 1 |
|
) |
| |
Construct an AudioAsset given a file path. The AudioAsset will decode the audio into samples.
- Parameters
-
| name | the file name to load |
| desired_channels | the number of channels the file should have after loading |
◆ AudioAsset() [2/2]
Use for generated audio. The AudioAsset assumes ownership of the data and will free it on destruction.
- Parameters
-
| data | the audio sample data, in [-1,1] normalized float |
| n_samples | the number of samples in the buffer. This number is not sanity-checked. |
| nchannels | the number of channels in the buffer. This number is not sanity-checked. |
The documentation for this class was generated from the following files: