~diwic/ubuntu/lucid/pulseaudio/bugfixes

« back to all changes in this revision

Viewing changes to src/pulsecore/sample-util.h

  • 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:
1
1
#ifndef foosampleutilhfoo
2
2
#define foosampleutilhfoo
3
3
 
4
 
/* $Id: sample-util.h 2041 2007-11-09 17:11:45Z lennart $ */
5
 
 
6
4
/***
7
5
  This file is part of PulseAudio.
8
6
 
30
28
#include <pulsecore/memblock.h>
31
29
#include <pulsecore/memchunk.h>
32
30
 
33
 
pa_memblock *pa_silence_memblock(pa_memblock* b, const pa_sample_spec *spec);
34
 
pa_memblock *pa_silence_memblock_new(pa_mempool *pool, const pa_sample_spec *spec, size_t length);
35
 
void pa_silence_memchunk(pa_memchunk *c, const pa_sample_spec *spec);
36
 
void pa_silence_memory(void *p, size_t length, const pa_sample_spec *spec);
 
31
typedef struct pa_silence_cache {
 
32
    pa_memblock* blocks[PA_SAMPLE_MAX];
 
33
} pa_silence_cache;
 
34
 
 
35
void pa_silence_cache_init(pa_silence_cache *cache);
 
36
void pa_silence_cache_done(pa_silence_cache *cache);
 
37
 
 
38
void *pa_silence_memory(void *p, size_t length, const pa_sample_spec *spec);
 
39
pa_memchunk* pa_silence_memchunk(pa_memchunk *c, const pa_sample_spec *spec);
 
40
pa_memblock* pa_silence_memblock(pa_memblock *b, const pa_sample_spec *spec);
 
41
 
 
42
pa_memchunk* pa_silence_memchunk_get(pa_silence_cache *cache, pa_mempool *pool, pa_memchunk* ret, const pa_sample_spec *spec, size_t length);
37
43
 
38
44
typedef struct pa_mix_info {
39
45
    pa_memchunk chunk;
70
76
void pa_interleave(const void *src[], unsigned channels, void *dst, size_t ss, unsigned n);
71
77
void pa_deinterleave(const void *src, void *dst[], unsigned channels, size_t ss, unsigned n);
72
78
 
 
79
void pa_sample_clamp(pa_sample_format_t format, void *dst, size_t dstr, const void *src, size_t sstr, unsigned n);
 
80
 
 
81
pa_usec_t pa_bytes_to_usec_round_up(uint64_t length, const pa_sample_spec *spec);
 
82
size_t pa_usec_to_bytes_round_up(pa_usec_t t, const pa_sample_spec *spec);
 
83
 
73
84
#endif