Found that adjusting the pitch of an AudioSource reduces the rate at which OnAudioFilterRead is called. This allows for a lower sample rate to be used in the Csound instance and Unity will read from said instance at the appropriate sample rate. Allows for major improvement in resource consumption when less than high quality audio required.
Need to test this out on a more recent Unity version tomorrow, am running an older version of Unity (2019.4.9f1). Will verify all is good in more recent versions tomorrow evening.
Found that adjusting the pitch of an AudioSource reduces the rate at which OnAudioFilterRead is called. This allows for a lower sample rate to be used in the Csound instance and Unity will read from said instance at the appropriate sample rate. Allows for major improvement in resource consumption when less than high quality audio required.
Need to test this out on a more recent Unity version tomorrow, am running an older version of Unity (2019.4.9f1). Will verify all is good in more recent versions tomorrow evening.