LMMS
Loading...
Searching...
No Matches
juce_UMPUtils.cpp
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 The code included in this file is provided under the terms of the ISC license
11 http://www.isc.org/downloads/software-support-policy/isc-license. Permission
12 To use, copy, modify, and/or distribute this software for any purpose with or
13 without fee is hereby granted provided that the above copyright notice and
14 this permission notice appear in all copies.
15
16 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
17 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
18 DISCLAIMED.
19
20 ==============================================================================
21*/
22
23namespace juce
24{
26{
27
29{
30 switch (Utils::getMessageType (mt))
31 {
32 case 0x0:
33 case 0x1:
34 case 0x2:
35 case 0x6:
36 case 0x7:
37 return 1;
38 case 0x3:
39 case 0x4:
40 case 0x8:
41 case 0x9:
42 case 0xa:
43 return 2;
44 case 0xb:
45 case 0xc:
46 return 3;
47 case 0x5:
48 case 0xd:
49 case 0xe:
50 case 0xf:
51 return 4;
52 }
53
55 return 1;
56}
57
58}
59}
#define jassertfalse
unsigned int uint32_t
Definition mid.cpp:100
Definition juce_UMP_test.cpp:26
Definition carla_juce.cpp:31
static const Bit8u mt[16]
Definition nukedopl.c:138
static uint32_t getNumWordsForMessageType(uint32_t)
Definition juce_UMPUtils.cpp:28
static constexpr uint8_t getMessageType(uint32_t w) noexcept
Definition juce_UMPUtils.h:108