Why is the following code giving me an error?
buffer[sample] = random.nextFloat() * 0.25f -0.125f;
It is in the getNextAudioBlock function (within a nested for loop) and it is intended to fill the buffer with random numbers (white noise). [as in Simple synthesis (noise) Tutorial on JUCE website - Build a White Noise Generator]
The error I get is: member reference base type ‘long()’ is not a structure or union