From 5ce36aaab5bb95dcc144dc36075cee3519634528 Mon Sep 17 00:00:00 2001 From: nishi Date: Mon, 13 May 2024 06:10:46 +0000 Subject: [PATCH] please use linefeed git-svn-id: file:///raid/svn-main/kazu-ksynth/trunk@39 7b47e76f-e598-2f43-bc14-414d160cc389 --- src/ksynth.h | 2 +- src/sample.c | 22 +++++++++++----------- src/voice.c | 44 ++++++++++++++++++++++---------------------- src/voice.h | 50 +++++++++++++++++++++++++------------------------- 4 files changed, 59 insertions(+), 59 deletions(-) diff --git a/src/ksynth.h b/src/ksynth.h index dd796fd..8534920 100644 --- a/src/ksynth.h +++ b/src/ksynth.h @@ -1,4 +1,4 @@ -#ifndef KSYNTH_H +#ifndef KSYNTH_H #define KSYNTH_H #ifdef __cplusplus extern "C" { diff --git a/src/sample.c b/src/sample.c index 51ad584..3be4349 100644 --- a/src/sample.c +++ b/src/sample.c @@ -1,11 +1,11 @@ -/* $Id$ */ - -#include "sample.h" -#include -#include - -void sample_free(struct Sample* sample) { - if(sample != NULL) { - free(sample); - } -} +/* $Id$ */ + +#include "sample.h" +#include +#include + +void sample_free(struct Sample* sample) { + if(sample != NULL) { + free(sample); + } +} diff --git a/src/voice.c b/src/voice.c index 8d083e9..a2e2cea 100644 --- a/src/voice.c +++ b/src/voice.c @@ -1,22 +1,22 @@ -/* $Id$ */ - -#include "voice.h" -#include - -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; -} +/* $Id$ */ + +#include "voice.h" +#include + +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; +} diff --git a/src/voice.h b/src/voice.h index 28444dd..93ee4f5 100644 --- a/src/voice.h +++ b/src/voice.h @@ -1,25 +1,25 @@ -#ifndef VOICE_H -#define VOICE_H -#ifdef __cplusplus -extern "C" { -#endif - -#include - -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 +#ifndef VOICE_H +#define VOICE_H +#ifdef __cplusplus +extern "C" { +#endif + +#include + +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 -- 2.43.0