Loading...
Searching...
No Matches
juce_MPEValue.h
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2022 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
The code included in this file is provided under the terms of the ISC license
http://www.isc.org/downloads/software-support-policy/isc-license. Permission
To use, copy, modify, and/or distribute this software for any purpose with or
without fee is hereby granted provided that the above copyright notice and
this permission notice appear in all copies.
JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
DISCLAIMED.
==============================================================================
*/
namespace juce
{
//==============================================================================
class JUCE_API MPEValue
{
public:
//==============================================================================
MPEValue() noexcept;
static MPEValue from7BitInt (int value) noexcept;
static MPEValue from14BitInt (int value) noexcept;
static MPEValue fromUnsignedFloat (float value) noexcept;
static MPEValue fromSignedFloat (float value) noexcept;
static MPEValue centreValue() noexcept;
static MPEValue minValue() noexcept;
static MPEValue maxValue() noexcept;
int as7BitInt() const noexcept;
int as14BitInt() const noexcept;
float asSignedFloat() const noexcept;
float asUnsignedFloat() const noexcept;
bool operator== (const MPEValue& other) const noexcept;
bool operator!= (const MPEValue& other) const noexcept;
private:
//==============================================================================
MPEValue (int normalisedValue);
int normalisedValue = 8192;
};
} // namespace juce
juce::MPEValue::asSignedFloat
float asSignedFloat() const noexcept
Definition juce_MPEValue.cpp:74
juce::MPEValue::maxValue
static MPEValue maxValue() noexcept
Definition juce_MPEValue.cpp:61
juce::MPEValue::centreValue
static MPEValue centreValue() noexcept
Definition juce_MPEValue.cpp:60
juce::MPEValue::from14BitInt
static MPEValue from14BitInt(int value) noexcept
Definition juce_MPEValue.cpp:40
juce::MPEValue::fromUnsignedFloat
static MPEValue fromUnsignedFloat(float value) noexcept
Definition juce_MPEValue.cpp:46
juce::MPEValue::fromSignedFloat
static MPEValue fromSignedFloat(float value) noexcept
Definition juce_MPEValue.cpp:52
juce::MPEValue::minValue
static MPEValue minValue() noexcept
Definition juce_MPEValue.cpp:59
juce::MPEValue::asUnsignedFloat
float asUnsignedFloat() const noexcept
Definition juce_MPEValue.cpp:81
juce::MPEValue::MPEValue
MPEValue() noexcept
Definition juce_MPEValue.cpp:26
juce::MPEValue::as7BitInt
int as7BitInt() const noexcept
Definition juce_MPEValue.cpp:63
juce::MPEValue::as14BitInt
int as14BitInt() const noexcept
Definition juce_MPEValue.cpp:68
juce::MPEValue::from7BitInt
static MPEValue from7BitInt(int value) noexcept
Definition juce_MPEValue.cpp:30