mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Lots of small whitespace tweaks.
This commit is contained in:
parent
0d3afee459
commit
02492b36b9
179 changed files with 405 additions and 407 deletions
|
|
@ -93,7 +93,7 @@ void SamplerVoice::startNote (const int midiNoteNumber,
|
|||
SynthesiserSound* s,
|
||||
const int /*currentPitchWheelPosition*/)
|
||||
{
|
||||
if (const SamplerSound* const sound = dynamic_cast <const SamplerSound*> (s))
|
||||
if (const SamplerSound* const sound = dynamic_cast<const SamplerSound*> (s))
|
||||
{
|
||||
pitchRatio = pow (2.0, (midiNoteNumber - sound->midiRootNote) / 12.0)
|
||||
* sound->sourceSampleRate / getSampleRate();
|
||||
|
|
@ -152,7 +152,7 @@ void SamplerVoice::controllerMoved (const int /*controllerNumber*/,
|
|||
//==============================================================================
|
||||
void SamplerVoice::renderNextBlock (AudioSampleBuffer& outputBuffer, int startSample, int numSamples)
|
||||
{
|
||||
if (const SamplerSound* const playingSound = static_cast <SamplerSound*> (getCurrentlyPlayingSound().get()))
|
||||
if (const SamplerSound* const playingSound = static_cast<SamplerSound*> (getCurrentlyPlayingSound().get()))
|
||||
{
|
||||
const float* const inL = playingSound->data->getReadPointer (0);
|
||||
const float* const inR = playingSound->data->getNumChannels() > 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue