~diwic/ubuntu/lucid/pulseaudio/bugfixes

« back to all changes in this revision

Viewing changes to src/tests/channelmap-test.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:
1
 
/* $Id: channelmap-test.c 1418 2007-01-04 13:43:45Z ossman $ */
 
1
#ifdef HAVE_CONFIG_H
 
2
#include <config.h>
 
3
#endif
2
4
 
3
5
#include <stdio.h>
4
6
#include <assert.h>
5
7
 
6
8
#include <pulse/channelmap.h>
7
 
#include <pulsecore/gccmacro.h>
 
9
#include <pulse/gccmacro.h>
8
10
 
9
 
int main(PA_GCC_UNUSED int argc, PA_GCC_UNUSED char *argv[]) {
 
11
int main(int argc, char *argv[]) {
10
12
    char cm[PA_CHANNEL_MAP_SNPRINT_MAX];
11
13
    pa_channel_map map, map2;
12
14
 
22
24
 
23
25
    fprintf(stderr, "map: <%s>\n", pa_channel_map_snprint(cm, sizeof(cm), &map));
24
26
 
 
27
    pa_channel_map_init_extend(&map, 14, PA_CHANNEL_MAP_ALSA);
 
28
 
 
29
    fprintf(stderr, "map: <%s>\n", pa_channel_map_snprint(cm, sizeof(cm), &map));
 
30
 
25
31
    pa_channel_map_parse(&map2, cm);
26
32
 
27
33
    assert(pa_channel_map_equal(&map, &map2));
28
34
 
29
35
    pa_channel_map_parse(&map2, "left,test");
30
36
 
31
 
 
32
37
    return 0;
33
38
}