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 @@
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+
18 2009-02-26 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
29
310 * Win32/Makefile.msvc
src/samplerate.h+3−3
@@ -40,14 +40,14 @@ typedef struct SRC_STATE_tag SRC_STATE ; · 39 unmodified lines
4040
4141 /* SRC_DATA is used to pass data to src_simple() and src_process(). */
4242 typedef struct
43−{ float *data_in, *data_out ;
43+{ double src_ratio ;
44+
45+ float *data_in, *data_out ;
4446
4547 long input_frames, output_frames ;
4648 long input_frames_used, output_frames_gen ;
4749
4850 int end_of_input ;
49−
50− double src_ratio ;
5151 } SRC_DATA ;
5252
5353 /* 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