History

src/samplerate.h : Move src_ratio field to the start of the SRC_DATA struct to ensure it gets aligned correctly.

Erik de Castro Lopo committed 17 years ago

Commit 8e2d37f1 parent e9824f92 files · +10 −3Browse files

Unified · Split

2 files
  1. ChangeLog +7 −0
  2. src/samplerate.h +3 −3
ChangeLog+7−0
@@ -1,3 +1,10 @@
12009-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
12009-02-26 Erik de Castro Lopo <erikd AT mega-nerd DOT com>82009-02-26 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
2 9
3 * Win32/Makefile.msvc10 * Win32/Makefile.msvc
src/samplerate.h+3−3
@@ -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(). */
42typedef struct42typedef 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. */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t