LMMS
Loading...
Searching...
No Matches
LmmsTypes.h
Go to the documentation of this file.
1/*
2 * LmmsTypes.h - typedefs for common types that are used in the whole app
3 *
4 * Copyright (c) 2004-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
5 *
6 * This file is part of LMMS - https://lmms.io
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public
19 * License along with this program (see COPYING); if not, write to the
20 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301 USA.
22 *
23 */
24
25#ifndef LMMS_TYPES_H
26#define LMMS_TYPES_H
27
28#include <cstdint>
29
30
31namespace lmms
32{
33
34using bar_t = std::int32_t;
35using tick_t = std::int32_t;
36using volume_t = std::uint8_t;
37using panning_t = std::int8_t;
38
39using sample_t = float; // standard sample-type
40using int_sample_t = std::int16_t; // 16-bit-int-sample
41
42using sample_rate_t = std::uint32_t; // sample-rate
43using f_cnt_t = std::uint64_t; // standard frame-count
44using ch_cnt_t = std::uint16_t; // audio channel index/count (0-MaxChannelsPerAudioBuffer)
45using bpm_t = std::uint16_t; // tempo (MIN_BPM to MAX_BPM)
46using bitrate_t = std::uint16_t; // bitrate in kbps
47using mix_ch_t = std::uint16_t; // Mixer-channel (0 to MAX_CHANNEL)
48using group_cnt_t = std::uint8_t; // channel group index/count (0-MaxGroupsPerAudioBuffer)
49
50using jo_id_t = std::uint32_t; // (unique) ID of a journalling object
51
52} // namespace lmms
53
54#endif // LMMS_TYPES_H
Definition AudioAlsa.cpp:35
std::uint8_t group_cnt_t
Definition LmmsTypes.h:48
std::uint16_t ch_cnt_t
Definition LmmsTypes.h:44
std::uint32_t sample_rate_t
Definition LmmsTypes.h:42
float sample_t
Definition LmmsTypes.h:39
std::int16_t int_sample_t
Definition LmmsTypes.h:40
std::int32_t bar_t
Definition LmmsTypes.h:34
std::uint16_t bitrate_t
Definition LmmsTypes.h:46
std::int32_t tick_t
Definition LmmsTypes.h:35
std::int8_t panning_t
Definition LmmsTypes.h:37
std::uint64_t f_cnt_t
Definition LmmsTypes.h:43
std::uint32_t jo_id_t
Definition LmmsTypes.h:50
std::uint16_t bpm_t
Definition LmmsTypes.h:45
std::uint16_t mix_ch_t
Definition LmmsTypes.h:47
std::uint8_t volume_t
Definition LmmsTypes.h:36