ref: 2d64679ffb4bbcff2aa1729797d8c9cbd4219bff
parent: 2b99b481adb9de40aa92d69f8b665033a6da7f52
author: Erik de Castro Lopo <[email protected]>
date: Wed Jan 16 15:53:01 EST 2013
Make SRC_DATA const correct. Thanks to Nikos Chantziaras for the suggestion.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-01-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
+
+ * src/samplerate.h src/common.h
+ Make SRC_DATA const correct. Thanks to Nikos Chantziaras for the suggestion.
+
2012-10-07 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* examples/sndfile-resample.c
--- a/src/common.h
+++ b/src/common.h
@@ -1,5 +1,5 @@
/*
-** Copyright (C) 2002-2012 Erik de Castro Lopo <[email protected]>
+** Copyright (C) 2002-2013 Erik de Castro Lopo <[email protected]>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
@@ -130,7 +130,7 @@
src_callback_t callback_func ;
void *user_callback_data ;
long saved_frames ;
- float *saved_data ;
+ const float *saved_data ;
} SRC_PRIVATE ;
/* In src_sinc.c */
--- a/src/samplerate.h
+++ b/src/samplerate.h
@@ -1,5 +1,5 @@
/*
-** Copyright (C) 2002-2011 Erik de Castro Lopo <[email protected]>
+** Copyright (C) 2002-2013 Erik de Castro Lopo <[email protected]>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
@@ -40,7 +40,8 @@
/* SRC_DATA is used to pass data to src_simple() and src_process(). */
typedef struct
-{ float *data_in, *data_out ;
+{ const float *data_in ;
+ float *data_out ;
long input_frames, output_frames ;
long input_frames_used, output_frames_gen ;