mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
Remove function sf_get_info (only ever in pre-release code).
This commit is contained in:
parent
fc54aad003
commit
87b2c095b3
@ -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.
|
||||
|
@ -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 )
|
||||
|
@ -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 ;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user