History

Make SRC_DATA const correct. Thanks to Nikos Chantziaras for the suggestion.

Erik de Castro Lopo committed 13 years ago

Commit 2d646791 parent 2b99b483 files · +10 −4Browse files

Showing the changes to src (2 of 3 files). Show all

Unified · Split

2 files
  1. src/common.h +2 −2
  2. src/samplerate.h +3 −2
src/common.h+2−2
@@ -1,5 +1,5 @@
11 /*
2−** Copyright (C) 2002-2012 Erik de Castro Lopo <erikd@mega-nerd.com>
2+** Copyright (C) 2002-2013 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
@@ -130,7 +130,7 @@ typedef struct SRC_PRIVATE_tag · 124 unmodified lines
130130 src_callback_t callback_func ;
131131 void *user_callback_data ;
132132 long saved_frames ;
133− float *saved_data ;
133+ const float *saved_data ;
134134 } SRC_PRIVATE ;
135135
136136 /* In src_sinc.c */
src/samplerate.h+3−2
@@ -1,5 +1,5 @@
11 /*
2−** Copyright (C) 2002-2011 Erik de Castro Lopo <erikd@mega-nerd.com>
2+** Copyright (C) 2002-2013 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
@@ -40,7 +40,8 @@ typedef struct SRC_STATE_tag SRC_STATE ; · 34 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+{ const float *data_in ;
44+ float *data_out ;
4445
4546 long input_frames, output_frames ;
4647 long input_frames_used, output_frames_gen ;

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