From e8a102dc96c96af920d7b22f722c167761b2a5e2 Mon Sep 17 00:00:00 2001 From: Angel Ortega Date: Fri, 18 Jan 2008 14:27:12 +0100 Subject: [PATCH] Use const in ss_tempo_from_wave() and ss_pitch_from_tempo(). --- ahxm.h | 4 ++-- ss_core.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ahxm.h b/ahxm.h index 60c81e2..031e96b 100644 --- a/ahxm.h +++ b/ahxm.h @@ -266,8 +266,8 @@ struct ss_wave * ss_alloc_wave(int size, int n_channels, int s_rate, int p_size) void ss_free_wave(struct ss_wave * w); void ss_prepare_wave(struct ss_wave * w); sample_t ss_get_sample(struct ss_wave * w, int channel, double offset); -double ss_tempo_from_wave(struct ss_wave * w, int note, double len); -double ss_pitch_from_tempo(struct ss_wave * w, double tempo, double len); +double ss_tempo_from_wave(const struct ss_wave * w, int note, double len); +double ss_pitch_from_tempo(const struct ss_wave * w, double tempo, double len); /* in ss_gen.c */ diff --git a/ss_core.c b/ss_core.c index febcd1e..a3b08d4 100644 --- a/ss_core.c +++ b/ss_core.c @@ -329,7 +329,7 @@ sample_t ss_get_sample(struct ss_wave * w, int channel, double offset) * Calculates the optimal tempo for the @w wave, playing the @note, * to last @len whole notes. */ -double ss_tempo_from_wave(struct ss_wave *w, int note, double len) +double ss_tempo_from_wave(const struct ss_wave *w, int note, double len) { double d; @@ -358,7 +358,7 @@ double ss_tempo_from_wave(struct ss_wave *w, int note, double len) * Calculates the optimal frequency (pitch) for the @w wave, at @tempo, * to last @len whole notes. */ -double ss_pitch_from_tempo(struct ss_wave *w, double tempo, double len) +double ss_pitch_from_tempo(const struct ss_wave *w, double tempo, double len) { double d; -- 2.11.4.GIT