mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
src: Drop redundant SFE_UNKNOWN_FORMAT enum value
This commit is contained in:
parent
4a30dabe13
commit
5d5798187f
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 1999-2017 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 1999-2018 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify
|
||||
** it under the terms of the GNU Lesser General Public License as published by
|
||||
@ -573,7 +573,6 @@ enum
|
||||
SFE_UNIMPLEMENTED,
|
||||
SFE_BAD_READ_ALIGN,
|
||||
SFE_BAD_WRITE_ALIGN,
|
||||
SFE_UNKNOWN_FORMAT,
|
||||
SFE_NOT_READMODE,
|
||||
SFE_NOT_WRITEMODE,
|
||||
SFE_BAD_MODE_RW,
|
||||
|
@ -81,7 +81,6 @@ ErrorStruct SndfileErrors [] =
|
||||
{ SFE_UNIMPLEMENTED , "File contains data in an unimplemented format." },
|
||||
{ SFE_BAD_READ_ALIGN , "Attempt to read a non-integer number of channels." },
|
||||
{ SFE_BAD_WRITE_ALIGN , "Attempt to write a non-integer number of channels." },
|
||||
{ SFE_UNKNOWN_FORMAT , "File contains data in an unknown format." },
|
||||
{ SFE_NOT_READMODE , "Read attempted on file currently open for write." },
|
||||
{ SFE_NOT_WRITEMODE , "Write attempted on file currently open for read." },
|
||||
{ SFE_BAD_MODE_RW , "Error : This file format does not support read/write mode." },
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2001-2017 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2001-2018 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify
|
||||
** it under the terms of the GNU Lesser General Public License as published by
|
||||
@ -405,7 +405,7 @@ voc_read_header (SF_PRIVATE *psf)
|
||||
break ;
|
||||
|
||||
default : /* Unknown */
|
||||
return SFE_UNKNOWN_FORMAT ;
|
||||
return SFE_VOC_BAD_FORMAT ;
|
||||
break ;
|
||||
} ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user