Luciano Dato 7 年之前
父节点
当前提交
d5fa399be0
共有 4 个文件被更改,包括 12 次插入11 次删除
  1. 1 1
      README.md
  2. 1 1
      lv2ttl/manifest.ttl.in
  3. 2 2
      lv2ttl/sdenoise.ttl.in
  4. 8 7
      src/sdenoise.c

+ 1 - 1
README.md

@@ -1,4 +1,4 @@
-# speech-denoiser
+speech-denoiser
 ------
 A speech denoise lv2 plugin based on Xiph's RNNoise library
 

+ 1 - 1
lv2ttl/manifest.ttl.in

@@ -1,7 +1,7 @@
 @prefix lv2:  <http://lv2plug.in/ns/lv2core#>.
 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
 
-<https://github.com/lucianodato/speech-denoise>
+<https://github.com/lucianodato/speech-denoiser>
   a lv2:Plugin;
   lv2:binary <sdenoise.so> ;
   rdfs:seeAlso <sdenoise.ttl> .

+ 2 - 2
lv2ttl/sdenoise.ttl.in

@@ -15,11 +15,11 @@
   foaf:homepage <https://github.com/lucianodato> ;
   foaf:mbox <mailto:lucianodato@gmail.com> .
 
-<https://github.com/lucianodato/speech-denoise>
+<https://github.com/lucianodato/speech-denoiser>
   a lv2:Plugin, lv2:SpectralPlugin, lv2:UtilityPlugin, doap:Project ;
   doap:maintainer <http://example.com/lucianodato#me> ;
   doap:license <https://opensource.org/licenses/LGPL-3.0> ;
-  doap:name "Speech Denoise";
+  doap:name "Speech Denoiser";
   @VERSION@
   lv2:optionalFeature lv2:hardRTCapable ;
 

+ 8 - 7
src/sdenoise.c

@@ -18,7 +18,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/
 */
 
 /**
-* \file snrepel.c
+* \file sdenoise.c
 * \author Luciano Dato
 * \brief The main file for host interaction
 */
@@ -34,7 +34,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/
 #include <rnnoise.h>
 #include "lv2/lv2plug.in/ns/lv2core/lv2.h"
 
-#define SDENOISE_URI "https://github.com/lucianodato/speech-denoise"
+#define SDENOISE_URI "https://github.com/lucianodato/speech-denoiser"
 
 #define FRAME_SIZE 480 //Frame default size
 
@@ -54,7 +54,7 @@ typedef enum
 } PortIndex;
 
 /**
-* Struct for speech-denoise instance, the host is going to use.
+* Struct for speech-denoiser instance, the host is going to use.
 */
 typedef struct
 {
@@ -103,7 +103,7 @@ instantiate(const LV2_Descriptor* descriptor, double rate, const char* bundle_pa
 	//RNNoise related
 	self->frame_size = FRAME_SIZE;
 
-	//buffers for OLA
+	//processing buffers
 	self->in_fifo = (float*)calloc(self->frame_size, sizeof(float));
 	self->out_fifo = (float*)calloc(self->frame_size, sizeof(float));
 	self->input_frame = (float*)calloc(self->frame_size, sizeof(float));
@@ -199,14 +199,15 @@ run(LV2_Handle instance, uint32_t n_samples)
 
 			//------------PROCESSING-------------
 
-			//Process input_frame
-			rnnoise_process_frame(self->st, self->processed_frame, self->input_frame);
-
 			// //Test
 			// for (k = 0; k < self->frame_size; k++)
 			// {
 			// 	self->processed_frame[k] = self->input_frame[k];
 			// }
+
+			//Process input_frame
+			rnnoise_process_frame(self->st, self->processed_frame, self->input_frame);
+
 			//-----------------------------------
 
 			//Output samples