diff options
author | David Isaksson <davidisaksson93@gmail.com> | 2021-09-23 21:16:03 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-11-08 16:29:25 -0800 |
commit | b6d075bb0105dd5c66760e274074eb91deff3df3 (patch) | |
tree | e993e9e34e519908c78ff3556f5b29d903e76549 /Userland/Libraries/LibDSP/Music.h | |
parent | fa4255bcf11889f0ab0739e04502ff927e246f14 (diff) | |
download | serenity-b6d075bb0105dd5c66760e274074eb91deff3df3.zip |
LibAudio: Rename Audio::Frame -> Audio::Sample
"Frame" is an MPEG term, which is not only unintuitive but also
overloaded with different meaning by other codecs (e.g. FLAC).
Therefore, use the standard term Sample for the central audio structure.
The class is also extracted to its own file, because it's becoming quite
large. Bundling these two changes means not distributing similar
modifications (changing names and paths) across commits.
Co-authored-by: kleines Filmröllchen <malu.bertsch@gmail.com>
Diffstat (limited to 'Userland/Libraries/LibDSP/Music.h')
-rw-r--r-- | Userland/Libraries/LibDSP/Music.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibDSP/Music.h b/Userland/Libraries/LibDSP/Music.h index 5a9c434a6b..306b3c6193 100644 --- a/Userland/Libraries/LibDSP/Music.h +++ b/Userland/Libraries/LibDSP/Music.h @@ -14,7 +14,7 @@ namespace LibDSP { // FIXME: Audio::Frame is 64-bit float, which is quite large for long clips. -using Sample = Audio::Frame; +using Sample = Audio::Sample; Sample const SAMPLE_OFF = { 0.0, 0.0 }; |