~diwic/ubuntu/lucid/pulseaudio/bugfixes

« back to all changes in this revision

Viewing changes to src/utils/pactl.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-12-04 00:56:08 UTC
  • mto: (1.15.1 sid)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20071204005608-3lzrrrpxi186kgx4
Tags: upstream-0.9.8
ImportĀ upstreamĀ versionĀ 0.9.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: pactl.c 1971 2007-10-28 19:13:50Z lennart $ */
 
1
/* $Id: pactl.c 2035 2007-11-09 01:30:46Z lennart $ */
2
2
 
3
3
/***
4
4
  This file is part of PulseAudio.
38
38
#include <sndfile.h>
39
39
 
40
40
#include <pulse/pulseaudio.h>
 
41
#include <pulsecore/core-util.h>
41
42
 
42
43
#if PA_API_VERSION < 10
43
44
#error Invalid PulseAudio API version
662
663
           "%s [options] exit\n"
663
664
           "%s [options] upload-sample FILENAME [NAME]\n"
664
665
           "%s [options] play-sample NAME [SINK]\n"
 
666
           "%s [options] remove-sample NAME\n"
665
667
           "%s [options] move-sink-input ID SINK\n"
666
668
           "%s [options] move-source-output ID SOURCE\n"
667
 
           "%s [options] remove-sample NAME\n"
668
669
           "%s [options] load-module NAME [ARGS ...]\n"
669
670
           "%s [options] unload-module ID\n"
670
671
           "%s [options] suspend-sink [SINK] 1|0\n"
850
851
                goto quit;
851
852
            }
852
853
 
853
 
            suspend = !!atoi(argv[argc-1]);
 
854
            suspend = pa_parse_boolean(argv[argc-1]);
854
855
 
855
856
            if (argc > optind+2)
856
857
                sink_name = pa_xstrdup(argv[optind+1]);
863
864
                goto quit;
864
865
            }
865
866
 
866
 
            suspend = !!atoi(argv[argc-1]);
 
867
            suspend = pa_parse_boolean(argv[argc-1]);
867
868
 
868
869
            if (argc > optind+2)
869
870
                source_name = pa_xstrdup(argv[optind+1]);