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

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

Unified · Split

2 files
  1. src/common.h +2 −1
  2. src/samplerate.c +2 −0
src/common.h+2−1
@@ -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** 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
@@ -99,6 +99,7 @@ enum · 93 unmodified lines
99 SRC_ERR_NULL_CALLBACK,99 SRC_ERR_NULL_CALLBACK,
100 SRC_ERR_NO_VARIABLE_RATIO,100 SRC_ERR_NO_VARIABLE_RATIO,
101 SRC_ERR_SINC_PREPARE_DATA_BAD_LEN,101 SRC_ERR_SINC_PREPARE_DATA_BAD_LEN,
102 SRC_ERR_BAD_INTERNAL_STATE,
102 103
103 /* This must be the last error number. */104 /* This must be the last error number. */
104 SRC_ERR_MAX_ERROR105 SRC_ERR_MAX_ERROR
src/samplerate.c+2−0
@@ -426,6 +426,8 @@ src_strerror (int error) · 425 unmodified lines
426 return "This converter only allows constant conversion ratios." ;426 return "This converter only allows constant conversion ratios." ;
427 case SRC_ERR_SINC_PREPARE_DATA_BAD_LEN :427 case SRC_ERR_SINC_PREPARE_DATA_BAD_LEN :
428 return "Internal error : Bad length in prepare_data ()." ;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 case SRC_ERR_MAX_ERROR :432 case SRC_ERR_MAX_ERROR :
431 return "Placeholder. No error defined for this error number." ;433 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