Tutorials and reader mode in safari


#1

In some cases, some code is not shown in reader mode.  For example, in Tutorial: Simple synthesis (noise), the webpage includes this (right above Generating white noise using the Random class):

​
void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill) override
{
for (int channel = 0; channel < bufferToFill.buffer->getNumChannels(); ++channel)
{
// Get a pointer to the start sample in the buffer for this audio output channel
float* const buffer = bufferToFill.buffer->getWritePointer (channel, bufferToFill.startSample);
// Fill the required number of samples with noise betweem -0.125 and +0.125
for (int sample = 0; sample < bufferToFill.numSamples; ++sample)
buffer[sample] = random.nextFloat() * 0.25f - 0.125f;
}
}

 

But, in reader mode, it shows this:

{
{
for (int sample = 0; sample < bufferToFill.numSamples; ++sample)
buffer[sample] = random.nextFloat() * 0.25f - 0.125f;
}
}

 

 


#2

Sounds like maybe more of a bug report for Apple than us?

Our web team is pretty stretched, this feels like something I wouldn't want to bother them with..