Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update JUCE to 8.0.6 #41

Merged
merged 3 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion JUCE
Submodule JUCE updated 719 files
6 changes: 4 additions & 2 deletions Source/ChangeableArrowButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ ChangeableArrowButton::ChangeableArrowButton(
, colour(arrowColour)
{
path.addTriangle(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.5f);
path.applyTransform(juce::AffineTransform::rotation(juce::float_Pi * 2.0f * arrowDirectionInRadians, 0.5f, 0.5f));
path.applyTransform(
juce::AffineTransform::rotation(juce::MathConstants<float>::pi * 2.0f * arrowDirectionInRadians, 0.5f, 0.5f));
}

void ChangeableArrowButton::paintButton(juce::Graphics& g, bool /*isMouseOverButton*/, bool isButtonDown)
Expand All @@ -26,6 +27,7 @@ void ChangeableArrowButton::setArrowDirection(float arrowDirectionInRadians)
{
path.clear();
path.addTriangle(0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.5f);
path.applyTransform(juce::AffineTransform::rotation(juce::float_Pi * 2.0f * arrowDirectionInRadians, 0.5f, 0.5f));
path.applyTransform(
juce::AffineTransform::rotation(juce::MathConstants<float>::pi * 2.0f * arrowDirectionInRadians, 0.5f, 0.5f));
repaint();
}
2 changes: 1 addition & 1 deletion Source/LevelMeter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ LevelMeter::LevelMeter()
: m_volume(0.0f)
, m_peak(0.0f)
, m_peakDurationLeft(0)
, m_rotationTransformation(juce::AffineTransform::rotation(-90.0f * juce::float_Pi / 180.0f))
, m_rotationTransformation(juce::AffineTransform::rotation(-90.0f * juce::MathConstants<float>::pi / 180.0f))
{
}

Expand Down
2 changes: 1 addition & 1 deletion Source/TestToneGeneratorAudioSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void TestToneGeneratorAudioSource::prepareToPlay(int samplesPerBlockExpected, do
m_sampleRate = sampleRate;

const double cyclesPerSample = 1000 / m_sampleRate; // [2]
angleDelta = cyclesPerSample * 2.0 * juce::double_Pi; // [3]
angleDelta = cyclesPerSample * 2.0 * juce::MathConstants<double>::pi; // [3]

prepared.resize(m_samplesPerBlockExpected);
}
Expand Down
4 changes: 2 additions & 2 deletions Source/TrackUi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void TrackUi::updateIdText()
void TrackUi::fileChanged(const juce::File& file, bool updatePlaylist)
{
m_fileNameLabel.setText(file.getFileName(), juce::sendNotification);
int textWidth = m_fileNameLabel.getFont().getStringWidth(m_fileNameLabel.getText())
int textWidth = juce::GlyphArrangement::getStringWidthInt(m_fileNameLabel.getFont(), m_fileNameLabel.getText())
+ m_fileNameLabel.getBorderSize().getLeft() + m_fileNameLabel.getBorderSize().getRight();
m_fileNameLabel.setBounds(getWidth() - textWidth, getHeight() - 20, textWidth, 20);

Expand Down Expand Up @@ -371,7 +371,7 @@ void TrackUi::resized()

int textWidth = 0;
if (m_fileNameLabel.getText() != "")
textWidth = m_fileNameLabel.getFont().getStringWidth(m_fileNameLabel.getText())
textWidth = juce::GlyphArrangement::getStringWidthInt(m_fileNameLabel.getFont(), m_fileNameLabel.getText())
+ m_fileNameLabel.getBorderSize().getLeft() + m_fileNameLabel.getBorderSize().getRight();
m_fileNameLabel.setBounds(getWidth() - textWidth, getHeight() - 20, textWidth, 20);

Expand Down
Loading