src/aiff.c : Apply a fix from Axel Roebel where if the second loop in the instrument chunk is none, the loop mode is written into the first loop.

This commit is contained in:
Erik de Castro Lopo 2008-06-14 13:39:59 +10:00
parent 1d68c20ccc
commit 2641541953
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-06-14 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/aiff.c
Apply a fix from Axel Roebel where if the second loop in the instrument
chunk is none, the loop mode is written into the first loop.
2008-05-31 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/test_float.c src/test_main.(c|h) src/Makefile.am

View File

@ -729,7 +729,7 @@ aiff_read_header (SF_PRIVATE *psf, COMM_CHUNK *comm_fmt)
loop_mode = get_loop_mode_str (mode) ;
mode = get_loop_mode (mode) ;
if (mode == SF_LOOP_NONE)
psf->instrument->loops [0].mode = SF_LOOP_NONE ;
psf->instrument->loops [1].mode = SF_LOOP_NONE ;
else
{ psf->instrument->loop_count += 1 ;
psf->instrument->loops [1].mode = SF_LOOP_FORWARD ;