|
DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
|
Metadata describing an audio file's format and dimensions. More...
#include <AudioFile.h>
Public Member Functions | |
| AudioSpec | toSpec (int defaultBlockSize=0) const noexcept |
| Converts this file info to an AudioSpec for processor preparation. | |
Public Attributes | |
| double | sampleRate = 44100.0 |
| Sample rate in Hz (e.g., 44100.0, 48000.0, 96000.0). | |
| uint32_t | numChannels = 0 |
| Number of audio channels (1 = mono, 2 = stereo). | |
| int64_t | numSamples = 0 |
| Total number of sample frames in the file. | |
| uint32_t | bitsPerSample = 16 |
| Bits per sample in the stored format (8, 16, 24, 32, 64). | |
| bool | isFloatingPoint = false |
| True if the file stores floating-point samples (IEEE 754). | |
Metadata describing an audio file's format and dimensions.
Definition at line 38 of file AudioFile.h.
|
inlinenoexcept |
Converts this file info to an AudioSpec for processor preparation.
| defaultBlockSize | Desired block size. Values <= 0 select the entire file length (offline single-block mode). |
Definition at line 78 of file AudioFile.h.
| uint32_t dspark::AudioFileInfo::bitsPerSample = 16 |
Bits per sample in the stored format (8, 16, 24, 32, 64).
Definition at line 56 of file AudioFile.h.
| bool dspark::AudioFileInfo::isFloatingPoint = false |
True if the file stores floating-point samples (IEEE 754).
Definition at line 59 of file AudioFile.h.
| uint32_t dspark::AudioFileInfo::numChannels = 0 |
Number of audio channels (1 = mono, 2 = stereo).
Definition at line 44 of file AudioFile.h.
| int64_t dspark::AudioFileInfo::numSamples = 0 |
Total number of sample frames in the file.
Definition at line 47 of file AudioFile.h.
| double dspark::AudioFileInfo::sampleRate = 44100.0 |
Sample rate in Hz (e.g., 44100.0, 48000.0, 96000.0).
Definition at line 41 of file AudioFile.h.