Should i use AudioSource?


#1

Just to check:

for simple audio primitives such as oscillators, filters, envelope generators, etc… AudioSource is the best base class to use, right?


#2

Depends. Often if you’re building algorithms out of primitives, it’s best just to call these things as simple functions/classes that the compiler will inline. If you’re building dynamic graphs whose structure may change then it works to break things up into AudioSources or similar classes.


#3

aarghh,that’s actually what i had been doing all along, but thought it’s be better to go with something more ‘Jucey’.

oh well, no harm done…will go back to plan A. thanks Jules.