ToneGeneratorGenerate Method (UInt32, UInt32, UInt32) |
Generates a tone at a given frequency.
Namespace: StreamCoders.SignalsAssembly: MediaSuite (in MediaSuite.dll) Version: 2.0.5.0 (2.0.5.0)
Syntaxpublic byte[] Generate(
uint frequency,
uint duration,
uint volume
)
Public Function Generate (
frequency As UInteger,
duration As UInteger,
volume As UInteger
) As Byte()
public:
array<unsigned char>^ Generate(
unsigned int frequency,
unsigned int duration,
unsigned int volume
)
member Generate :
frequency : uint32 *
duration : uint32 *
volume : uint32 -> byte[]
Parameters
- frequency
- Type: SystemUInt32
Frequency of the tone to be generated. - duration
- Type: SystemUInt32
The duration in milliseconds of the generated signal. - volume
- Type: SystemUInt32
Unsigned power level [0;63] Amp = 10^(volume/10)
Return Value
Type:
Byte
null if it fails, else.
See Also