mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 16:37:12 +01:00
Update libsndfile to 1.0.29pre2+git
This pulls in MANY (over 890) changes compared to our from our current 1.0.24 version.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2002-2011 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2002-2017 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
|
||||
@@ -112,8 +112,8 @@ htk_write_header (SF_PRIVATE *psf, int calc_length)
|
||||
psf->filelength = psf_get_filelen (psf) ;
|
||||
|
||||
/* Reset the current header length to zero. */
|
||||
psf->header [0] = 0 ;
|
||||
psf->headindex = 0 ;
|
||||
psf->header.ptr [0] = 0 ;
|
||||
psf->header.indx = 0 ;
|
||||
psf_fseek (psf, 0, SEEK_SET) ;
|
||||
|
||||
if (psf->filelength > 12)
|
||||
@@ -123,15 +123,15 @@ htk_write_header (SF_PRIVATE *psf, int calc_length)
|
||||
|
||||
sample_period = 10000000 / psf->sf.samplerate ;
|
||||
|
||||
psf_binheader_writef (psf, "E444", sample_count, sample_period, 0x20000) ;
|
||||
psf_binheader_writef (psf, "E444", BHW4 (sample_count), BHW4 (sample_period), BHW4 (0x20000)) ;
|
||||
|
||||
/* Header construction complete so write it out. */
|
||||
psf_fwrite (psf->header, psf->headindex, 1, psf) ;
|
||||
psf_fwrite (psf->header.ptr, psf->header.indx, 1, psf) ;
|
||||
|
||||
if (psf->error)
|
||||
return psf->error ;
|
||||
|
||||
psf->dataoffset = psf->headindex ;
|
||||
psf->dataoffset = psf->header.indx ;
|
||||
|
||||
if (current > 0)
|
||||
psf_fseek (psf, current, SEEK_SET) ;
|
||||
|
||||
Reference in New Issue
Block a user