Unified · Split
| @@ -1,3 +1,8 @@ | ||
| 1 | +2012-08-27 Erik de Castro Lopo <erikd AT mega-nerd DOT com> | |
| 2 | + | |
| 3 | + * src/common.h src/samplerate.c | |
| 4 | + Add SRC_ERR_BAD_INTERNAL_STATE error number and string. | |
| 5 | + | |
| 1 | 6 | 2012-08-23 Erik de Castro Lopo <erikd AT mega-nerd DOT com> |
| 2 | 7 | |
| 3 | 8 | * tests/multi_channel_test.c tests/snr_bw_test.c tests/varispeed_test.c |
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | /* |
| 2 | −** Copyright (C) 2002-2011 Erik de Castro Lopo <erikd@mega-nerd.com> | |
| 2 | +** Copyright (C) 2002-2012 Erik de Castro Lopo <erikd@mega-nerd.com> | |
| 3 | 3 | ** |
| 4 | 4 | ** This program is free software; you can redistribute it and/or modify |
| 5 | 5 | ** it under the terms of the GNU General Public License as published by |
| @@ -99,6 +99,7 @@ enum · 93 unmodified lines | ||
| 99 | 99 | SRC_ERR_NULL_CALLBACK, |
| 100 | 100 | SRC_ERR_NO_VARIABLE_RATIO, |
| 101 | 101 | SRC_ERR_SINC_PREPARE_DATA_BAD_LEN, |
| 102 | + SRC_ERR_BAD_INTERNAL_STATE, | |
| 102 | 103 | |
| 103 | 104 | /* This must be the last error number. */ |
| 104 | 105 | SRC_ERR_MAX_ERROR |
| @@ -426,6 +426,8 @@ src_strerror (int error) · 425 unmodified lines | ||
| 426 | 426 | return "This converter only allows constant conversion ratios." ; |
| 427 | 427 | case SRC_ERR_SINC_PREPARE_DATA_BAD_LEN : |
| 428 | 428 | return "Internal error : Bad length in prepare_data ()." ; |
| 429 | + case SRC_ERR_BAD_INTERNAL_STATE : | |
| 430 | + return "Error : Someone is trampling on my internal state." ; | |
| 429 | 431 | |
| 430 | 432 | case SRC_ERR_MAX_ERROR : |
| 431 | 433 | return "Placeholder. No error defined for this error number." ; |