Skip to content

Commit 1ef18a3

Browse files
authored
Merge branch 'develop' into integer-formats
2 parents b685247 + 6300a08 commit 1ef18a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/examples.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace examples
5959
{
6060
for (int channel = 0; channel < a.getNumChannels(); channel++)
6161
{
62-
a.samples[channel][i] = sin ((static_cast<float> (i) / sampleRate) * frequencyInHz * 2.f * M_PI);
62+
a.samples[channel][i] = sin ((static_cast<float> (i) / sampleRate) * frequencyInHz * 2.f * (float)M_PI);
6363
}
6464
}
6565

tests/FileWritingTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ bool writeTestAudioFile (int numChannels, int sampleRate, int bitDepth, AudioFil
3737
T sample = (T)(sinf (2. * M_PI * ((float) i / sampleRateAsFloat) * 440.) * maxValue);
3838

3939
for (int k = 0; k < audioFile.getNumChannels(); k++)
40-
audioFile.samples[k][i] = sample * 0.5;
40+
audioFile.samples[k][i] = sample * 0.5f;
4141
}
4242

4343
audioFile.setSampleRate (sampleRate);

0 commit comments

Comments
 (0)