Unified · Split
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-01-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com> | ||
| 2 | |||
| 3 | * src/samplerate.h src/common.h | ||
| 4 | Make SRC_DATA const correct. Thanks to Nikos Chantziaras for the suggestion. | ||
| 5 | |||
| 1 | 2012-10-07 Erik de Castro Lopo <erikd AT mega-nerd DOT com> | 6 | 2012-10-07 Erik de Castro Lopo <erikd AT mega-nerd DOT com> |
| 2 | 7 | ||
| 3 | * examples/sndfile-resample.c | 8 | * examples/sndfile-resample.c |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** Copyright (C) 2002-2012 Erik de Castro Lopo <erikd@mega-nerd.com> | 2 | ** Copyright (C) 2002-2013 Erik de Castro Lopo <erikd@mega-nerd.com> |
| 3 | ** | 3 | ** |
| 4 | ** This program is free software; you can redistribute it and/or modify | 4 | ** This program is free software; you can redistribute it and/or modify |
| 5 | ** it under the terms of the GNU General Public License as published by | 5 | ** it under the terms of the GNU General Public License as published by |
| @@ -130,7 +130,7 @@ typedef struct SRC_PRIVATE_tag · 124 unmodified lines | |||
| 130 | src_callback_t callback_func ; | 130 | src_callback_t callback_func ; |
| 131 | void *user_callback_data ; | 131 | void *user_callback_data ; |
| 132 | long saved_frames ; | 132 | long saved_frames ; |
| 133 | float *saved_data ; | 133 | const float *saved_data ; |
| 134 | } SRC_PRIVATE ; | 134 | } SRC_PRIVATE ; |
| 135 | 135 | ||
| 136 | /* In src_sinc.c */ | 136 | /* In src_sinc.c */ |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** Copyright (C) 2002-2011 Erik de Castro Lopo <erikd@mega-nerd.com> | 2 | ** Copyright (C) 2002-2013 Erik de Castro Lopo <erikd@mega-nerd.com> |
| 3 | ** | 3 | ** |
| 4 | ** This program is free software; you can redistribute it and/or modify | 4 | ** This program is free software; you can redistribute it and/or modify |
| 5 | ** it under the terms of the GNU General Public License as published by | 5 | ** it under the terms of the GNU General Public License as published by |
| @@ -40,7 +40,8 @@ typedef struct SRC_STATE_tag SRC_STATE ; · 34 unmodified lines | |||
| 40 | 40 | ||
| 41 | /* SRC_DATA is used to pass data to src_simple() and src_process(). */ | 41 | /* SRC_DATA is used to pass data to src_simple() and src_process(). */ |
| 42 | typedef struct | 42 | typedef struct |
| 43 | { float *data_in, *data_out ; | 43 | { const float *data_in ; |
| 44 | float *data_out ; | ||
| 44 | 45 | ||
| 45 | long input_frames, output_frames ; | 46 | long input_frames, output_frames ; |
| 46 | long input_frames_used, output_frames_gen ; | 47 | long input_frames_used, output_frames_gen ; |