Remove function sf_get_info (only ever in pre-release code).

This commit is contained in:
Erik de Castro Lopo 2007-10-21 17:44:58 +10:00
parent fc54aad003
commit 87b2c095b3
4 changed files with 4 additions and 25 deletions

View File

@ -3,13 +3,16 @@
* src/sndfile.h.in src/sndfile.c
Add command SFC_GET_CURRENT_SF_INFO.
* src/sndfile.h.in src/sndfile.c src/create_symbols_file.py
Remove function sf_get_info (only ever in pre-release code).
* tests/command_test.c
Add test for SFC_GET_CURRENT_SF_INFO.
2007-10-15 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/wav.c
Add parsing of 'exif' chunks. Orignally coded by Trent Apted.
Add parsing of 'exif' chunks. Originally coded by Trent Apted.
* configure.ac
Put config stuff in Cfg directory.

View File

@ -69,7 +69,6 @@ ALL_SYMBOLS = (
( "sf_strerror", 50 ),
( "sf_get_string", 60 ),
( "sf_set_string", 61 ),
( "sf_get_info", 68 ),
( "sf_open_fd", 70 ),
( "sf_open_virtual", 80 ),
( "sf_write_sync", 90 )

View File

@ -1240,23 +1240,6 @@ sf_seek (SNDFILE *sndfile, sf_count_t offset, int whence)
/*------------------------------------------------------------------------------
*/
int
sf_get_info (SNDFILE * sndfile, SF_INFO * info)
{ SF_PRIVATE *psf ;
if (info == NULL)
return SF_FALSE ;
if ((psf = (SF_PRIVATE*) sndfile) == NULL)
return SF_FALSE ;
if (psf->Magick != SNDFILE_MAGICK)
return SF_FALSE ;
/* Need to correct psf->sf.frames ???? */
memcpy (info, &psf->sf, sizeof (SF_INFO)) ;
return SF_TRUE ;
} /* sf_get_info */
const char*
sf_get_string (SNDFILE *sndfile, int str_type)
{ SF_PRIVATE *psf ;

View File

@ -521,12 +521,6 @@ int sf_format_check (const SF_INFO *info) ;
sf_count_t sf_seek (SNDFILE *sndfile, sf_count_t frames, int whence) ;
/* Retrieve the SF_INFO struct for the given SNDFILE. Returns SF_FALSE on
** failure, SF_TRUE otherwise.
*/
int sf_get_info (SNDFILE * sndfile, SF_INFO * info) ;
/* Functions for retrieving and setting string data within sound files.
** Not all file types support this features; AIFF and WAV do. For both
** functions, the str_type parameter must be one of the SF_STR_* values