History

Add SRC_ERR_BAD_INTERNAL_STATE error number and string.

Erik de Castro Lopo committed 14 years ago

Commit 0d8a1341 parent c901a463 files · +9 −1Browse files

Unified · Split

3 files
  1. ChangeLog +5 −0
  2. src/common.h +2 −1
  3. src/samplerate.c +2 −0
ChangeLog+5−0
@@ -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+
16 2012-08-23 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
27
38 * tests/multi_channel_test.c tests/snr_bw_test.c tests/varispeed_test.c
src/common.h+2−1
@@ -1,5 +1,5 @@
11 /*
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>
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
@@ -99,6 +99,7 @@ enum · 93 unmodified lines
9999 SRC_ERR_NULL_CALLBACK,
100100 SRC_ERR_NO_VARIABLE_RATIO,
101101 SRC_ERR_SINC_PREPARE_DATA_BAD_LEN,
102+ SRC_ERR_BAD_INTERNAL_STATE,
102103
103104 /* This must be the last error number. */
104105 SRC_ERR_MAX_ERROR
src/samplerate.c+2−0
@@ -426,6 +426,8 @@ src_strerror (int error) · 425 unmodified lines
426426 return "This converter only allows constant conversion ratios." ;
427427 case SRC_ERR_SINC_PREPARE_DATA_BAD_LEN :
428428 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." ;
429431
430432 case SRC_ERR_MAX_ERROR :
431433 return "Placeholder. No error defined for this error number." ;

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