~diwic/ubuntu/lucid/pulseaudio/bugfixes

« back to all changes in this revision

Viewing changes to src/pulsecore/ffmpeg/resample2.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2008-11-04 15:46:00 UTC
  • mfrom: (1.2.1 upstream) (1.1.6 lenny)
  • Revision ID: james.westby@ubuntu.com-20081104154600-hlzknpcazaam0nxm
Tags: 0.9.13-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Don't build against, and create jack package. Jack is not in main.
  - Remove --disable-per-user-esound-socket from configure flags, as we still
    want per user esound sockets.
  - Remove stop links from rc0 and rc6.
  - Change default resample algorithm and bubffer size.
  - Add alsa configuration files to route alsa applications via pulseaudio.
  - Move libasound2-plugins from Recommends to Depends.
* debian/pulseaudio.preinst: When upgrading from intrepid, remove
  /etc/X11/Xsession.d/70pulseaudio, as this was used to minimize a race
  condition when starting GNOME in intrepid. This race should not exist in
  jaunty once libcanberra is built to use pulseaudio as a backend.
* Do not spawn a pulseaudio server if clients fail to find a running server.
* Remove explicit version dependency for libspeex-dev to allow the package
  to be built for now.
* Regenerate autotools files to work with Ubuntu's newer libtool/libltdl.
* debian/control: libpulsecore5 -> libpulsecore8 to match the library
  soname.

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
 
209
209
/**
210
210
 * Compensates samplerate/timestamp drift. The compensation is done by changing
211
 
 * the resampler parameters, so no audible clicks or similar distortions ocur
 
211
 * the resampler parameters, so no audible clicks or similar distortions occur
212
212
 * @param compensation_distance distance in output samples over which the compensation should be performed
213
213
 * @param sample_delta number of output samples which should be output less
214
214
 *
231
231
 * @param src_size the number of unconsumed samples available
232
232
 * @param dst_size the amount of space in samples available in dst
233
233
 * @param update_ctx if this is 0 then the context wont be modified, that way several channels can be resampled with the same context
234
 
 * @return the number of samples written in dst or -1 if an error occured
 
234
 * @return the number of samples written in dst or -1 if an error occurred
235
235
 */
236
236
int av_resample(AVResampleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx){
237
237
    int dst_index, i;