lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
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
31
namespace
lmms
32
{
33
34
using
bar_t
= std::int32_t;
35
using
tick_t
= std::int32_t;
36
using
volume_t
= std::uint8_t;
37
using
panning_t
= std::int8_t;
38
39
using
sample_t
= float;
// standard sample-type
40
using
int_sample_t
= std::int16_t;
// 16-bit-int-sample
41
42
using
sample_rate_t
= std::uint32_t;
// sample-rate
43
using
f_cnt_t
= std::uint64_t;
// standard frame-count
44
using
ch_cnt_t
= std::uint16_t;
// audio channel index/count (0-MaxChannelsPerAudioBuffer)
45
using
bpm_t
= std::uint16_t;
// tempo (MIN_BPM to MAX_BPM)
46
using
bitrate_t
= std::uint16_t;
// bitrate in kbps
47
using
mix_ch_t
= std::uint16_t;
// Mixer-channel (0 to MAX_CHANNEL)
48
using
group_cnt_t
= std::uint8_t;
// channel group index/count (0-MaxGroupsPerAudioBuffer)
49
50
using
jo_id_t
= std::uint32_t;
// (unique) ID of a journalling object
51
52
}
// namespace lmms
53
54
#endif
// LMMS_TYPES_H
lmms
Definition
RemotePluginBase.cpp:34
lmms::group_cnt_t
std::uint8_t group_cnt_t
Definition
LmmsTypes.h:48
lmms::ch_cnt_t
std::uint16_t ch_cnt_t
Definition
LmmsTypes.h:44
lmms::sample_rate_t
std::uint32_t sample_rate_t
Definition
LmmsTypes.h:42
lmms::sample_t
float sample_t
Definition
LmmsTypes.h:39
lmms::int_sample_t
std::int16_t int_sample_t
Definition
LmmsTypes.h:40
lmms::bar_t
std::int32_t bar_t
Definition
LmmsTypes.h:34
lmms::bitrate_t
std::uint16_t bitrate_t
Definition
LmmsTypes.h:46
lmms::tick_t
std::int32_t tick_t
Definition
LmmsTypes.h:35
lmms::panning_t
std::int8_t panning_t
Definition
LmmsTypes.h:37
lmms::f_cnt_t
std::uint64_t f_cnt_t
Definition
LmmsTypes.h:43
lmms::jo_id_t
std::uint32_t jo_id_t
Definition
LmmsTypes.h:50
lmms::bpm_t
std::uint16_t bpm_t
Definition
LmmsTypes.h:45
lmms::mix_ch_t
std::uint16_t mix_ch_t
Definition
LmmsTypes.h:47
lmms::volume_t
std::uint8_t volume_t
Definition
LmmsTypes.h:36
Generated on
for lmms by
1.18.0