playing a WAV file
This commit is contained in:
22
audio/t.c
22
audio/t.c
@@ -3,25 +3,37 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <ao/ao.h>
|
||||
|
||||
#include "ao_output.h"
|
||||
#include "playfile.h"
|
||||
|
||||
/* --------------------------------------------------------------------- */
|
||||
|
||||
int verbosity;
|
||||
|
||||
/* --------------------------------------------------------------------- */
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int foo;
|
||||
int foo;
|
||||
ao_device *device;
|
||||
|
||||
|
||||
foo = init_ao_output(44100);
|
||||
fprintf(stderr, "AO init -> %d\n", foo);
|
||||
device = init_ao_output(44100);
|
||||
fprintf(stderr, "AO init -> %p\n", device);
|
||||
|
||||
foo = play_some_stuff(0);
|
||||
foo = play_some_stuff(device, 0);
|
||||
fprintf(stderr, "play stuff -> %d\n", foo);
|
||||
|
||||
foo = close_ao_output();
|
||||
sleep(1);
|
||||
|
||||
foo = blast_this_file("/home/tth/BU/vrac/1337.wav", device, 0);
|
||||
fprintf(stderr, "blast file -> %d\n", foo);
|
||||
|
||||
foo = close_ao_output(device);
|
||||
fprintf(stderr, "AO close -> %d\n", foo);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user