Method | Description | |
---|---|---|
InitSettings ( ) : void |
Meant to be overridden if a derived type has to change settings before GenerateClip() is called.
|
|
ProceduralSoundWave ( ) : kOS.Safe.Sound |
Important: when making a derivative of ProceduralSoundWave, put your initializations of important things inside InitSettings(), not in your constructor. Instead make your constructor call the base constructor and do nothing else. The base constructor will call your InitSettings() for you. This is important because you need to populate your settings BEFORE the base constructor tries to call GenerateClip(). If you populated your settings inside your own constructor, that would be too late.
|
|
SampleFunction ( float t ) : float |
Override this in your derived class to make a wave generator of whatever type you like. It should be a time-domain picture of the sound wave over one wave period, outputting values from -1 to +1 for a given time t.
|
Method | Description | |
---|---|---|
FillBuffer ( float sampleData, int numChannels ) : void |
The workhorse under the hood for GenerateClip().
|
|
GenerateClip ( ) : void |
Generates the AudioClip (happens as part of the constructor).
|
public ProceduralSoundWave ( ) : kOS.Safe.Sound | ||
return | kOS.Safe.Sound |