Audacity 3.2.0
WaveData.cpp
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*!********************************************************************
3
4 Audacity: A Digital Audio Editor
5
6 WaveData.h
7
8 Dmitry Vedenko
9
10**********************************************************************/
11#include "WaveData.h"
12
14 : width(w)
15{
16}
17
20{
21 ownColums.insert(ownColums.end(), begin, end);
22 columns = ownColums.data();
23}
24
26{
27 ownColums.reserve(width);
28
29 if (width > 0)
30 columns = ownColums.data();
31}
32
WaveformDisplay(int w)
Definition: WaveData.cpp:13
WaveDisplayColumn * columns
Definition: WaveData.h:32
std::vector< WaveDisplayColumn > ownColums
Definition: WaveData.h:39
void AppendColumns(const WaveDisplayColumn *begin, const WaveDisplayColumn *end)
Definition: WaveData.cpp:18
void Allocate()
Definition: WaveData.cpp:25
const char * end(const char *str) noexcept
Definition: StringUtils.h:106
const char * begin(const char *str) noexcept
Definition: StringUtils.h:101
Data for sample blocks related to the column.
Definition: WaveData.h:19