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

Unified · Split

3 files
  1. ChangeLog +5 −0
  2. src/common.h +2 −2
  3. src/samplerate.h +3 −2
ChangeLog+5−0
@@ -1,3 +1,8 @@
12013-01-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
2
3 * src/samplerate.h src/common.h
4 Make SRC_DATA const correct. Thanks to Nikos Chantziaras for the suggestion.
5
12012-10-07 Erik de Castro Lopo <erikd AT mega-nerd DOT com>62012-10-07 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
2 7
3 * examples/sndfile-resample.c8 * examples/sndfile-resample.c
src/common.h+2−2
@@ -1,5 +1,5 @@
1/*1/*
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>
3**3**
4** This program is free software; you can redistribute it and/or modify4** This program is free software; you can redistribute it and/or modify
5** it under the terms of the GNU General Public License as published by5** 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
130 src_callback_t callback_func ;130 src_callback_t callback_func ;
131 void *user_callback_data ;131 void *user_callback_data ;
132 long saved_frames ;132 long saved_frames ;
133 float *saved_data ;133 const float *saved_data ;
134} SRC_PRIVATE ;134} SRC_PRIVATE ;
135 135
136/* In src_sinc.c */136/* In src_sinc.c */
src/samplerate.h+3−2
@@ -1,5 +1,5 @@
1/*1/*
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>
3**3**
4** This program is free software; you can redistribute it and/or modify4** This program is free software; you can redistribute it and/or modify
5** it under the terms of the GNU General Public License as published by5** 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
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{ const float *data_in ;
44 float *data_out ;
44 45
45 long input_frames, output_frames ;46 long input_frames, output_frames ;
46 long input_frames_used, output_frames_gen ;47 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