diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-01-22 10:21:11 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-01-22 10:21:11 +0000 |
commit | f9194b01059599270d8a13ead0d6ae9db5a13264 (patch) | |
tree | e779c59b562bb2c1ceda4ccbeaa77380d4471b77 /lab2 | |
parent | 5672d7e342e603c5796cc154950bafbb23a8c479 (diff) | |
download | NoiseSilencer-f9194b01059599270d8a13ead0d6ae9db5a13264.tar.gz NoiseSilencer-f9194b01059599270d8a13ead0d6ae9db5a13264.zip |
Cleaning more in lab2
Diffstat (limited to 'lab2')
-rw-r--r-- | lab2/RTDSP/sine.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lab2/RTDSP/sine.c b/lab2/RTDSP/sine.c index 44c9a62..1e2e5e5 100644 --- a/lab2/RTDSP/sine.c +++ b/lab2/RTDSP/sine.c @@ -46,7 +46,6 @@ #define SINE_TABLE_SIZE 256 - /******************************* Global declarations ********************************/ /* Audio port configuration settings: these values set registers in the AIC23 audio @@ -76,14 +75,6 @@ DSK6713_AIC23_CodecHandle H_Codec; 32000, 44100 (CD standard), 48000 or 96000 */ int sampling_freq = 16000; - -// Array of data used by sinegen to generate sine. These are the initial values. -float y[3] = {0,0,0}; -float x[1] = {1}; // impulse to start filter - -float a0 = 1.4142; // coefficients for difference equation -float b0 = 0.707; - // Holds the value of the current sample float sample; @@ -95,7 +86,7 @@ Int32 R_Gain = 2100000000; /* Use this variable in your code to set the frequency of your sine wave be carefull that you do not set it above the current nyquist frequency! */ -float sine_freq = 1000.0; +float sine_freq = 1000.f; // Declares the global sine table that will be used to generate the sine wave float table[SINE_TABLE_SIZE]; |