~ubuntu-branches/ubuntu/breezy/speech-dispatcher/breezy

« back to all changes in this revision

Viewing changes to src/tests/audio.c

  • Committer: Bazaar Package Importer
  • Author(s): Milan Zamazal
  • Date: 2004-05-30 12:55:54 UTC
  • Revision ID: james.westby@ubuntu.com-20040530125554-iy8f3to3bw4cldv5
Tags: upstream-0.4.1
ImportĀ upstreamĀ versionĀ 0.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#include "spd_audio.h"
 
3
 
 
4
int
 
5
main(int argc, char *argv[])
 
6
{
 
7
    char *filename;
 
8
    cst_wave *wave;
 
9
 
 
10
    if (argc == 2){
 
11
        filename = strdup(argv[1]);
 
12
    }else{
 
13
        printf("Invalid arguments.\n"
 
14
               "Usage %s filename.wav\n", argv[0]);
 
15
        exit(1);
 
16
    }
 
17
    
 
18
    printf("Ok, playing file %s ...\n", filename);
 
19
    spd_audio_play_file(filename);
 
20
    printf("Done.\n");
 
21
}