Unified · Split
| @@ -5,6 +5,12 @@ · 4 unmodified lines | ||
| 5 | 5 | due to clipping of the output when the format is FLAC. This problem arises |
| 6 | 6 | due to libsndfile's in ability to seek in a FLAC file during write. |
| 7 | 7 | |
| 8 | + * src/samplerate.h tests/termination_test.c | |
| 9 | + Revert change that moved the src_ratio field to the start of SRC_DATA | |
| 10 | + struct. This change does have some merit, but is not worth it considering | |
| 11 | + that its an API change. This idea will be reconsidered when the API does | |
| 12 | + change. | |
| 13 | + | |
| 8 | 14 | 2009-12-01 Erik de Castro Lopo <erikd AT mega-nerd DOT com> |
| 9 | 15 | |
| 10 | 16 | * doc/win32.html |
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | /* |
| 2 | −** Copyright (C) 2002-2009 Erik de Castro Lopo <erikd@mega-nerd.com> | |
| 2 | +** Copyright (C) 2002-2010 Erik de Castro Lopo <erikd@mega-nerd.com> | |
| 3 | 3 | ** |
| 4 | 4 | ** This program is free software; you can redistribute it and/or modify |
| 5 | 5 | ** it under the terms of the GNU General Public License as published by |
| @@ -36,19 +36,18 @@ extern "C" { · 30 unmodified lines | ||
| 36 | 36 | |
| 37 | 37 | |
| 38 | 38 | /* Opaque data type SRC_STATE. */ |
| 39 | −struct SRC_STATE_tag ; | |
| 40 | 39 | typedef struct SRC_STATE_tag SRC_STATE ; |
| 41 | 40 | |
| 42 | 41 | /* SRC_DATA is used to pass data to src_simple() and src_process(). */ |
| 43 | 42 | typedef struct |
| 44 | −{ double src_ratio ; | |
| 45 | − | |
| 46 | − float *data_in, *data_out ; | |
| 43 | +{ float *data_in, *data_out ; | |
| 47 | 44 | |
| 48 | 45 | long input_frames, output_frames ; |
| 49 | 46 | long input_frames_used, output_frames_gen ; |
| 50 | 47 | |
| 51 | 48 | int end_of_input ; |
| 49 | + | |
| 50 | + double src_ratio ; | |
| 52 | 51 | } SRC_DATA ; |
| 53 | 52 | |
| 54 | 53 | /* SRC_CB_DATA is used with callback based API. */ |
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | /* |
| 2 | −** Copyright (C) 2002-2009 Erik de Castro Lopo <erikd@mega-nerd.com> | |
| 2 | +** Copyright (C) 2002-2010 Erik de Castro Lopo <erikd@mega-nerd.com> | |
| 3 | 3 | ** |
| 4 | 4 | ** This program is free software; you can redistribute it and/or modify |
| 5 | 5 | ** it under the terms of the GNU General Public License as published by |
| @@ -83,10 +83,10 @@ simple_test (int converter) · 77 unmodified lines | ||
| 83 | 83 | float out [olen] ; |
| 84 | 84 | double ratio = (1.0 * olen) / ilen ; |
| 85 | 85 | SRC_DATA src_data = |
| 86 | − { ratio, | |
| 87 | − in, out, | |
| 86 | + { in, out, | |
| 88 | 87 | ilen, olen, |
| 89 | − 0, 0, 0 | |
| 88 | + 0, 0, 0, | |
| 89 | + ratio | |
| 90 | 90 | } ; |
| 91 | 91 | |
| 92 | 92 | error = src_simple (&src_data, converter, 1) ; |