OpenShot Audio Library | OpenShotAudio
0.3.2
Loading...
Searching...
No Matches
juce_MPEValue.h
1
/*
2
==============================================================================
3
4
This file is part of the JUCE library.
5
Copyright (c) 2017 - ROLI Ltd.
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
23
namespace
juce
24
{
25
26
//==============================================================================
36
class
JUCE_API
MPEValue
37
{
38
public
:
39
//==============================================================================
44
MPEValue
()
noexcept
;
45
49
static
MPEValue
from7BitInt (
int
value)
noexcept
;
50
54
static
MPEValue
from14BitInt (
int
value)
noexcept
;
55
57
static
MPEValue
centreValue()
noexcept
;
58
60
static
MPEValue
minValue()
noexcept
;
61
63
static
MPEValue
maxValue()
noexcept
;
64
70
int
as7BitInt()
const
noexcept
;
71
77
int
as14BitInt()
const
noexcept
;
78
80
float
asSignedFloat()
const
noexcept
;
81
83
float
asUnsignedFloat()
const
noexcept
;
84
86
bool
operator==
(
const
MPEValue
&
other
)
const
noexcept
;
87
89
bool
operator!=
(
const
MPEValue
&
other
)
const
noexcept
;
90
91
private
:
92
//==============================================================================
93
MPEValue
(
int
normalisedValue);
94
int
normalisedValue = 8192;
95
};
96
97
}
// namespace juce
juce::Array
Definition
juce_Array.h:56
juce::MPEValue
Definition
juce_MPEValue.h:37
JuceLibraryCode
modules
juce_audio_basics
mpe
juce_MPEValue.h
Generated by
1.9.8