Changeset 1339


Ignore:
Timestamp:
Jun 5, 2007 11:54:58 AM (12 years ago)
Author:
bennylp
Message:

Fixed ticket #317: Duplicated audio when playing WAV playlist (thanks Jagdish Jangid)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/wav_playlist.c

    r1266 r1339  
    153153            if (fport->current_file == fport->max_file) 
    154154            { 
     155                /* Clear the remaining part of the buffer first, to prevent 
     156                 * old samples from being played. If the playback restarts, 
     157                 * this will be overwritten by new reading. 
     158                 */ 
     159                if (size_left > 0) { 
     160                    pj_bzero(&fport->buf[fport->bufsize-size_left],  
     161                             size_left); 
     162                } 
     163 
    155164                /* All files have been played. Call callback, if any. */ 
    156165                if (fport->cb) 
Note: See TracChangeset for help on using the changeset viewer.