mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:27:45 +00:00
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>
This commit is contained in:
parent
fa4255bcf1
commit
b6d075bb01
11 changed files with 179 additions and 165 deletions
|
@ -40,7 +40,7 @@ public:
|
|||
bool is_full() const { return m_queue.size() >= 3; }
|
||||
void enqueue(NonnullRefPtr<Audio::Buffer>&&);
|
||||
|
||||
bool get_next_sample(Audio::Frame& sample)
|
||||
bool get_next_sample(Audio::Sample& sample)
|
||||
{
|
||||
if (m_paused)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue