- Home /
Copy audio buffer into another component
I'm guessing this is not possible in v4.6, but I'm attempting to pass the audio buffer (float[] data) from OnAudioFilterRead into another component's OnAudioFilterRead. I setup a public float[] variable in the other component, and in the original OnAudioFilterRead I'm doing " otherAudio = data; " (which is set to the correct size at runtime) and I can see that float[] array getting filled. Then in the other OnAudioFilterRead I'm attempting to do: " data = otherAudio; ". This doesn't work. Is it possible to copy the audio buffer from one component to another?
The application is that I'm synthesizing an organ, and I want to make it stereo to match the set geometry (the delay caused by different distance will help bring it to life, put it in the space).