mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
Add unique_id field to SF_PRIVATE struct.
This commit is contained in:
parent
9b0de382ee
commit
6ed1e67865
@ -18,6 +18,9 @@
|
||||
* src/common.c
|
||||
Use gettimeofday() to initialize psf_rand_int32.
|
||||
|
||||
* src/common.h src/sndfile.c
|
||||
Add unique_id field to SF_PRIVATE struct.
|
||||
|
||||
2008-08-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* configure.ac
|
||||
|
@ -257,6 +257,8 @@ typedef struct sf_private_tag
|
||||
/* Guard value. If this changes the buffers above have overflowed. */
|
||||
int Magick ;
|
||||
|
||||
unsigned unique_id ;
|
||||
|
||||
/* Index variables for maintaining logbuffer and header above. */
|
||||
int logindex ;
|
||||
int headindex, headend ;
|
||||
|
@ -2460,6 +2460,9 @@ psf_open_file (SF_PRIVATE *psf, int mode, SF_INFO *sfinfo)
|
||||
psf->float_int_mult = 0 ;
|
||||
psf->float_max = -1.0 ;
|
||||
|
||||
/* An attempt at a per SF_PRIVATE unique id. */
|
||||
psf->unique_id = psf_rand_int32 () ;
|
||||
|
||||
/*
|
||||
** File formats that support ambisonic should override this default
|
||||
** and set it to SF_AMBISONIC_NONE.
|
||||
|
Loading…
Reference in New Issue
Block a user