History

Revert change that moved the src_ratio field to the start of SRC_DATA struct. This change does have some merit, but is not worth it considering that its an API change. This idea will be reconsidered when the API does change.

Erik de Castro Lopo committed 16 years ago

Commit 91e703b1 parent 19b5adc3 files · +14 −9Browse files

Unified · Split

3 files
  1. ChangeLog +6 −0
  2. src/samplerate.h +4 −5
  3. tests/termination_test.c +4 −4
ChangeLog+6−0
@@ -5,6 +5,12 @@ · 4 unmodified lines
55 due to clipping of the output when the format is FLAC. This problem arises
66 due to libsndfile's in ability to seek in a FLAC file during write.
77
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+
814 2009-12-01 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
915
1016 * doc/win32.html
src/samplerate.h+4−5
@@ -1,5 +1,5 @@
11 /*
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>
33 **
44 ** This program is free software; you can redistribute it and/or modify
55 ** it under the terms of the GNU General Public License as published by
@@ -36,19 +36,18 @@ extern "C" { · 30 unmodified lines
3636
3737
3838 /* Opaque data type SRC_STATE. */
39−struct SRC_STATE_tag ;
4039 typedef struct SRC_STATE_tag SRC_STATE ;
4140
4241 /* SRC_DATA is used to pass data to src_simple() and src_process(). */
4342 typedef struct
44−{ double src_ratio ;
45−
46− float *data_in, *data_out ;
43+{ float *data_in, *data_out ;
4744
4845 long input_frames, output_frames ;
4946 long input_frames_used, output_frames_gen ;
5047
5148 int end_of_input ;
49+
50+ double src_ratio ;
5251 } SRC_DATA ;
5352
5453 /* SRC_CB_DATA is used with callback based API. */
tests/termination_test.c+4−4
@@ -1,5 +1,5 @@
11 /*
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>
33 **
44 ** This program is free software; you can redistribute it and/or modify
55 ** it under the terms of the GNU General Public License as published by
@@ -83,10 +83,10 @@ simple_test (int converter) · 77 unmodified lines
8383 float out [olen] ;
8484 double ratio = (1.0 * olen) / ilen ;
8585 SRC_DATA src_data =
86− { ratio,
87− in, out,
86+ { in, out,
8887 ilen, olen,
89− 0, 0, 0
88+ 0, 0, 0,
89+ ratio
9090 } ;
9191
9292 error = src_simple (&src_data, converter, 1) ;

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