swept_tone.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #if !defined(_SPANDSP_SWEPT_TONE_H_)
00029 #define _SPANDSP_SWEPT_TONE_H_
00030
00031
00032
00033
00034
00035 typedef struct swept_tone_state_s swept_tone_state_t;
00036
00037 #if defined(__cplusplus)
00038 extern "C"
00039 {
00040 #endif
00041
00042 SPAN_DECLARE(swept_tone_state_t *) swept_tone_init(swept_tone_state_t *s, float start, float end, float level, int duration, int repeating);
00043
00044 SPAN_DECLARE(int) swept_tone(swept_tone_state_t *s, int16_t amp[], int len);
00045
00046 SPAN_DECLARE(float) swept_tone_current_frequency(swept_tone_state_t *s);
00047
00048 SPAN_DECLARE(int) swept_tone_release(swept_tone_state_t *s);
00049
00050 SPAN_DECLARE(int) swept_tone_free(swept_tone_state_t *s);
00051
00052 #if defined(__cplusplus)
00053 }
00054 #endif
00055
00056 #endif
00057