diff options
author | Max Kellermann <max@duempel.org> | 2008-04-12 04:20:13 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-04-12 04:20:13 +0000 |
commit | ca1090f93b10c87a5ae3d7234688699569af5b01 (patch) | |
tree | f5ceb0319e3393acf606ebd53c1410cdf3f03236 /src/sllist.c | |
parent | 0673c9a84dbbca60ed4627154e824dbfdeed269b (diff) | |
download | mpd-ca1090f93b10c87a5ae3d7234688699569af5b01.tar.gz mpd-ca1090f93b10c87a5ae3d7234688699569af5b01.tar.xz mpd-ca1090f93b10c87a5ae3d7234688699569af5b01.zip |
convert blocks until the buffer is full
Move the inner loop which converts samples to flac_convert(). There
it is isolated and easier to optimize. This function does not have to
worry about buffer boundaries; the caller (i.e. flacWrite())
calculates how much is left and is responsible for flushing. That
saves a lot of superfluous range checks within the loop.
git-svn-id: https://svn.musicpd.org/mpd/trunk@7327 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/sllist.c')
0 files changed, 0 insertions, 0 deletions