-/* $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;
+}
-#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