2004-06-23 23:17:30 +00:00
|
|
|
#ifndef foosampleutilhfoo
|
|
|
|
|
#define foosampleutilhfoo
|
|
|
|
|
|
2004-07-16 19:56:36 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
|
|
/***
|
2006-06-19 21:53:48 +00:00
|
|
|
This file is part of PulseAudio.
|
2004-07-16 19:56:36 +00:00
|
|
|
|
2006-06-19 21:53:48 +00:00
|
|
|
PulseAudio is free software; you can redistribute it and/or modify
|
2004-11-14 14:58:54 +00:00
|
|
|
it under the terms of the GNU Lesser General Public License as published
|
2004-07-16 19:56:36 +00:00
|
|
|
by the Free Software Foundation; either version 2 of the License,
|
|
|
|
|
or (at your option) any later version.
|
|
|
|
|
|
2006-06-19 21:53:48 +00:00
|
|
|
PulseAudio is distributed in the hope that it will be useful, but
|
2004-07-16 19:56:36 +00:00
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
General Public License for more details.
|
|
|
|
|
|
2004-11-14 14:58:54 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
2006-06-19 21:53:48 +00:00
|
|
|
along with PulseAudio; if not, write to the Free Software
|
2004-07-16 19:56:36 +00:00
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
|
USA.
|
|
|
|
|
***/
|
|
|
|
|
|
2006-06-19 21:53:48 +00:00
|
|
|
#include <pulse/sample.h>
|
|
|
|
|
#include <pulse/volume.h>
|
|
|
|
|
#include <pulsecore/memblock.h>
|
|
|
|
|
#include <pulsecore/memchunk.h>
|
2004-06-29 20:37:24 +00:00
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
pa_memblock *pa_silence_memblock(pa_memblock* b, const pa_sample_spec *spec);
|
2006-08-18 19:55:18 +00:00
|
|
|
pa_memblock *pa_silence_memblock_new(pa_mempool *pool, const pa_sample_spec *spec, size_t length);
|
2006-01-11 01:17:39 +00:00
|
|
|
void pa_silence_memchunk(pa_memchunk *c, const pa_sample_spec *spec);
|
|
|
|
|
void pa_silence_memory(void *p, size_t length, const pa_sample_spec *spec);
|
2004-06-23 23:17:30 +00:00
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
typedef struct pa_mix_info {
|
|
|
|
|
pa_memchunk chunk;
|
2006-01-27 16:25:31 +00:00
|
|
|
pa_cvolume volume;
|
2004-06-23 23:17:30 +00:00
|
|
|
void *userdata;
|
2006-01-27 16:25:31 +00:00
|
|
|
} pa_mix_info;
|
|
|
|
|
|
|
|
|
|
size_t pa_mix(
|
|
|
|
|
const pa_mix_info channels[],
|
|
|
|
|
unsigned nchannels,
|
|
|
|
|
void *data,
|
|
|
|
|
size_t length,
|
|
|
|
|
const pa_sample_spec *spec,
|
2006-02-23 12:04:31 +00:00
|
|
|
const pa_cvolume *volume,
|
|
|
|
|
int mute);
|
2006-01-27 16:25:31 +00:00
|
|
|
|
|
|
|
|
void pa_volume_memchunk(
|
|
|
|
|
pa_memchunk*c,
|
|
|
|
|
const pa_sample_spec *spec,
|
|
|
|
|
const pa_cvolume *volume);
|
2004-06-29 20:37:24 +00:00
|
|
|
|
2004-06-23 23:17:30 +00:00
|
|
|
#endif
|