Unified · Split
| @@ -1,3 +1,10 @@ | |||
| 1 | 2009-04-03 Erik de Castro Lopo <erikd AT mega-nerd DOT com> | ||
| 2 | |||
| 3 | * src/samplerate.h | ||
| 4 | Move src_ratio field to the start of the SRC_DATA struct to ensure it gets | ||
| 5 | aligned correctly when either the library or client code gets compiled with | ||
| 6 | -malign-double. | ||
| 7 | |||
| 1 | 2009-02-26 Erik de Castro Lopo <erikd AT mega-nerd DOT com> | 8 | 2009-02-26 Erik de Castro Lopo <erikd AT mega-nerd DOT com> |
| 2 | 9 | ||
| 3 | * Win32/Makefile.msvc | 10 | * Win32/Makefile.msvc |
| @@ -40,14 +40,14 @@ typedef struct SRC_STATE_tag SRC_STATE ; · 39 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 | { double src_ratio ; |
| 44 | |||
| 45 | float *data_in, *data_out ; | ||
| 44 | 46 | ||
| 45 | long input_frames, output_frames ; | 47 | long input_frames, output_frames ; |
| 46 | long input_frames_used, output_frames_gen ; | 48 | long input_frames_used, output_frames_gen ; |
| 47 | 49 | ||
| 48 | int end_of_input ; | 50 | int end_of_input ; |
| 49 | |||
| 50 | double src_ratio ; | ||
| 51 | } SRC_DATA ; | 51 | } SRC_DATA ; |
| 52 | 52 | ||
| 53 | /* SRC_CB_DATA is used with callback based API. */ | 53 | /* SRC_CB_DATA is used with callback based API. */ |