mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2025-02-17 01:20:02 +00:00
Minor cleanup.
This commit is contained in:
parent
007fc5d29d
commit
542b5493db
@ -3,6 +3,10 @@
|
||||
* doc/octave.html
|
||||
Fix link to octave.sourceforge.net. Thanks to IOhannes m zmoelnig.
|
||||
|
||||
* src/mat5.c
|
||||
Allow reading of mat5 files without a specified sample rate (default to
|
||||
44.1kHz). Thanks to IOhannes m zmoelnig.
|
||||
|
||||
2012-08-19 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* src/paf.c
|
||||
|
@ -319,10 +319,10 @@ mat5_read_header (SF_PRIVATE *psf)
|
||||
return SFE_MAT5_NO_BLOCK ;
|
||||
|
||||
psf_binheader_readf (psf, "44", &rows, &cols) ;
|
||||
psf_log_printf (psf, " Rows : %X Cols : %d\n", rows, cols) ;
|
||||
psf_log_printf (psf, " Rows : %d Cols : %d\n", rows, cols) ;
|
||||
|
||||
if (rows != 1 || cols != 1)
|
||||
{ if (0 == psf->sf.samplerate)
|
||||
{ if (psf->sf.samplerate == 0)
|
||||
psf->sf.samplerate = 44100 ;
|
||||
have_samplerate = 0 ;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user