so I want to scale the float correctly in the range of -1 to +1 in the format expected by AUGraph with a stream format that is configured as follows:
size_t bytesPerSample = sizeof (AudioUnitSampleType);
this question helped me set up a chart, but when I do a float as follows:
sampleValueLeft = (Fixed) (floatVal * 32767.0f);
it works, the signal sounds good, but very quiet. So what am I doing scaling wrong? Scaling more will interfere with the signal. Not like clipping, but the output volume does not increase. I do not intend to study mathematics with fixed points in depth, all I need is a single-line insert that fits in the correct format.
Thank you!
edit: I used a different stream format before which I could not figure out how to use the stereo signal correctly. With this other setting, I had no problems with the output volume, so I believe that the gain problem should be related to scaling ...
source share