Fixed libsndfile, added test-sndfile project

This commit is contained in:
Sergii Pylypenko
2013-05-20 21:21:10 +03:00
parent 0d628fa217
commit 36cc6e4bcb
10 changed files with 996 additions and 10 deletions

View File

@@ -29,6 +29,7 @@
#include "sfendian.h"
#include "common.h"
/*-----------------------------------------------------------------------------------------------
** psf_log_printf allows libsndfile internal functions to print to an internal logbuffer which
** can later be displayed.

View File

@@ -41,7 +41,7 @@
#define HAVE_ENDIAN_H 1
/* Will be set to 1 if flac, ogg and vorbis are available. */
/* #define HAVE_EXTERNAL_LIBS 1 */
#define HAVE_EXTERNAL_LIBS 1
/* Set to 1 if the compile supports the struct hack. */
#define HAVE_FLEXIBLE_ARRAY 1
@@ -213,7 +213,7 @@
#define PACKAGE_VERSION "1.0.25"
/* Set to maximum allowed value of sf_count_t type. */
#define SF_COUNT_MAX 0x7FFFFFFFFFFFFFFFLL
#define SF_COUNT_MAX 0x7FFFFFFFL
/* The size of `double', as computed by sizeof. */
#define SIZEOF_DOUBLE 8
@@ -243,7 +243,7 @@
#define SIZEOF_OFF_T 4
/* Set to sizeof (long) if unknown. */
#define SIZEOF_SF_COUNT_T 8
#define SIZEOF_SF_COUNT_T 4
/* The size of `short', as computed by sizeof. */
#define SIZEOF_SHORT 2
@@ -264,7 +264,7 @@
#define STDC_HEADERS 1
/* Set to long if unknown. */
#define TYPEOF_SF_COUNT_T int64_t
#define TYPEOF_SF_COUNT_T int32_t
/* Set to 1 to use the native windows API */
#define USE_WINDOWS_API 0

View File

@@ -227,7 +227,6 @@ psf_set_stdio (SF_PRIVATE *psf)
{ case SFM_RDWR :
error = SFE_OPEN_PIPE_RDWR ;
break ;
case SFM_READ :
psf->file.filedes = 0 ;
break ;
@@ -235,7 +234,6 @@ psf_set_stdio (SF_PRIVATE *psf)
case SFM_WRITE :
psf->file.filedes = 1 ;
break ;
default :
error = SFE_BAD_OPEN_MODE ;
break ;

View File

@@ -315,8 +315,8 @@ typedef struct SNDFILE_tag SNDFILE ;
typedef __int64 sf_count_t ;
#define SF_COUNT_MAX 0x7fffffffffffffffi64
#else
typedef int64_t sf_count_t ;
#define SF_COUNT_MAX 0x7FFFFFFFFFFFFFFFLL
typedef int32_t sf_count_t ;
#define SF_COUNT_MAX 0x7FFFFFFFL
#endif