]> Nishi Git Mirror - ksynth.git/commitdiff
please use linefeed
authornishi <nishi@7b47e76f-e598-2f43-bc14-414d160cc389>
Mon, 13 May 2024 06:10:46 +0000 (06:10 +0000)
committernishi <nishi@7b47e76f-e598-2f43-bc14-414d160cc389>
Mon, 13 May 2024 06:10:46 +0000 (06:10 +0000)
git-svn-id: file:///raid/svn-main/kazu-ksynth/trunk@39 7b47e76f-e598-2f43-bc14-414d160cc389

src/ksynth.h
src/sample.c
src/voice.c
src/voice.h

index dd796fd373e28a568890a3151f5712cc42cc4919..85349202dd4d921e0a98e20dd5b2b93a07d38116 100644 (file)
@@ -1,4 +1,4 @@
-#ifndef KSYNTH_H
+#ifndef KSYNTH_H
 #define KSYNTH_H
 #ifdef __cplusplus
 extern "C" {
index 51ad584c1e384d09e5a083dd1479f24842b78ab8..3be43499f829438157d2a6f34e8760ed2dc95978 100644 (file)
@@ -1,11 +1,11 @@
-/* $Id$ */\r
-\r
-#include "sample.h"\r
-#include <stdbool.h>\r
-#include <stdlib.h>\r
-\r
-void sample_free(struct Sample* sample) {\r
-       if(sample != NULL) {\r
-               free(sample);\r
-       }\r
-}\r
+/* $Id$ */
+
+#include "sample.h"
+#include <stdbool.h>
+#include <stdlib.h>
+
+void sample_free(struct Sample* sample) {
+       if(sample != NULL) {
+               free(sample);
+       }
+}
index 8d083e92f3889842fc89526dd9fd270d9f92d728..a2e2cea2d61a95b5401633b761767a87db9bb84f 100644 (file)
@@ -1,22 +1,22 @@
-/* $Id$ */\r
-\r
-#include "voice.h"\r
-#include <stdlib.h>\r
-\r
-void voice_free(struct Voice* voice) {\r
-       if(voice != NULL) {\r
-               free(voice);\r
-       }\r
-}\r
-\r
-void voice_reset(struct Voice* voice) {\r
-       voice->killed = 1;\r
-\r
-       voice->channel = 0;\r
-       voice->curfalloff = 0;\r
-       voice->noteNumber = 0;\r
-       voice->sample_position = 0;\r
-\r
-       voice->tokill = 0;\r
-       voice->velocity = 0;\r
-}\r
+/* $Id$ */
+
+#include "voice.h"
+#include <stdlib.h>
+
+void voice_free(struct Voice* voice) {
+       if(voice != NULL) {
+               free(voice);
+       }
+}
+
+void voice_reset(struct Voice* voice) {
+       voice->killed = 1;
+
+       voice->channel = 0;
+       voice->curfalloff = 0;
+       voice->noteNumber = 0;
+       voice->sample_position = 0;
+
+       voice->tokill = 0;
+       voice->velocity = 0;
+}
index 28444dd78ee0200328a2ccdda0cf960fe87ed46f..93ee4f50b7731ae80dc5649b3884092627c1d696 100644 (file)
@@ -1,25 +1,25 @@
-#ifndef VOICE_H\r
-#define VOICE_H\r
-#ifdef __cplusplus\r
-extern "C" {\r
-#endif\r
-\r
-#include <stdbool.h>\r
-\r
-struct Voice {\r
-       unsigned char killed;\r
-       unsigned char tokill;\r
-       unsigned char channel;\r
-       unsigned char noteNumber;\r
-       unsigned char velocity;\r
-       unsigned int curfalloff;\r
-       unsigned int sample_position;\r
-};\r
-\r
-void voice_free(struct Voice* voice);\r
-void voice_reset(struct Voice* voice);\r
-\r
-#ifdef __cplusplus\r
-}\r
-#endif\r
-#endif\r
+#ifndef VOICE_H
+#define VOICE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdbool.h>
+
+struct Voice {
+       unsigned char killed;
+       unsigned char tokill;
+       unsigned char channel;
+       unsigned char noteNumber;
+       unsigned char velocity;
+       unsigned int curfalloff;
+       unsigned int sample_position;
+};
+
+void voice_free(struct Voice* voice);
+void voice_reset(struct Voice* voice);
+
+#ifdef __cplusplus
+}
+#endif
+#endif