(I should append a warning to my previous message: the synth command I
gave will generate a _full scale_ rising sine wave.  Be cautious with
your volume controls.)

>From line 652 of src/alsa.c:

    while (0 && frames_of_silence > 0) {
        ...
    }

Deleting the "0 &&" makes it fill the remainder of the last period
with silence, which makes playback work without the glitch at the end.
I don't know whether that breaks anything else.

Upon further investigation, that change is similar to a change made in
revision 1.97 of src/alsa.c in upstream CVS.  Then revision 1.99
changed the code to use a different method of zeroing out the
remaining frames.  See <
http://sox.cvs.sourceforge.net/sox/sox/src/alsa.c?revision=1.99&view=markup
>.  Both of these are after the last official upstream release: the
revisions in the repo were on 2008-02-20 and 2008-03-05 according to
the CVS browser, and the release of 14.0.1 was on 2008-01-29 according
to the SourceForge project page.

   ---> Drake Wilson



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to