8000 [QUESTION] How to setup a Reverberation in Unity · Issue #489 · filoe/cscore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[QUESTION] How to setup a Reverberation in Unity #489
Open
@zenhund74

Description

@zenhund74

Hi, I'm trying to find a good reverb for streaming audio in unity with OnAudioFilterRead. I managed to get Freeverb working in an older Version approximately like this:

` fluid_revmodel Reverb = new fluid_revmodel(48000, 256);

 void OnAudioFilterRead(float[] data, int numChannels)
{
   int monoLength = data.Length / numChannels;
   float[] monobuffer = new float[monoLength];
   float[] left_out = new float[monoLength];
    float[] right_out = new float[monoLength]; 
  
  //Convert Stereo to mono if necessary

    
    Reverb.fluid_revmodel_processmix(monobuffer, left_out, right_out);

         int j = 0;
        for (int i = 0; i < data.Length - 1; i += 2)
        {
            data[i] = left_out[j];
            data[i + 1] = right_out[j];
            j++;
        }

}
`
Can you explain to me on how to do that with the CSCore effects?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0