~ubuntu-branches/debian/squeeze/nas/squeeze

« back to all changes in this revision

Viewing changes to clients/audio/util/playbucket.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve McIntyre
  • Date: 2008-10-08 01:18:19 UTC
  • mfrom: (4.1.7 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081008011819-wmr4h2w0298k8t7z
Tags: 1.9.1-5
* Fix pending l10n issues. Debconf translations:
* Swedish. Closes: #491766 (thanks to brother@bsnet.se)
* Arabic. Closes: #500437 (thanks to Ossama Khayat)
* Basque. Closes: #500533 (thanks to Piarres Beobide)
* Brazilian Portuguese. Closes: #500973 (thanks to Felipe
  Augusto van de Wiel)
* Many thanks again to Christian Perrier for his i18n efforts,
  co-ordinating the above.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#define USAGE "usage: playbucket [-a audioServer] [-v volume] file"
32
32
 
33
33
static void
34
 
fatalError(message, arg)
35
 
char           *message,
36
 
               *arg;
 
34
fatalError(const char *message, const char *arg)
37
35
{
38
36
    fprintf(stderr, message, arg);
39
37
    fprintf(stderr, "\n");
41
39
}
42
40
 
43
41
static void
44
 
doneCB(aud, handler, ev, data)
45
 
AuServer       *aud;
46
 
AuEvent        *ev;
47
 
AuEventHandlerRec *handler;
48
 
AuPointer       data;
 
42
doneCB(AuServer *aud, AuEventHandlerRec *handler, AuEvent *ev, AuPointer data)
49
43
{
50
44
    AuBool         *done = (AuBool *) data;
51
45
 
53
47
}
54
48
 
55
49
int
56
 
main(argc, argv)
57
 
int             argc;
58
 
char          **argv;
 
50
main(int argc, char **argv)
59
51
{
60
52
    Sound           s;
61
53
    char           *audioServer = NULL,
84
76
            argc -= 2;
85
77
            break;
86
78
          default:
87
 
            fatalError(USAGE);
 
79
            fatalError(USAGE, NULL);
88
80
        }
89
81
 
90
82
    if (argc != 2)
91
 
        fatalError(USAGE);
 
83
        fatalError(USAGE, NULL);
92
84
 
93
85
    if (!(s = SoundOpenFileForReading(*arg)))
94
86
        fatalError("Can't open file %s", *arg);
95
87
 
96
88
    if (!(aud = AuOpenServer(audioServer, 0, NULL, 0, NULL, NULL)))
97
 
        fatalError("Can't connect to audio server");
 
89
        fatalError("Can't connect to audio server", NULL);
98
90
 
99
91
    AuSetString(AuBucketDescription(&b),
100
92
                AuStringLatin1, strlen(SoundComment(s)), SoundComment(s));