first beep
This commit is contained in:
30
audio/t.c
Normal file
30
audio/t.c
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* NcLooper test des fonctions audio
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "ao_output.h"
|
||||
|
||||
/* --------------------------------------------------------------------- */
|
||||
|
||||
/* --------------------------------------------------------------------- */
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int foo;
|
||||
|
||||
|
||||
foo = init_ao_output(44100);
|
||||
fprintf(stderr, "AO init -> %d\n", foo);
|
||||
|
||||
foo = play_some_stuff(0);
|
||||
fprintf(stderr, "play stuff -> %d\n", foo);
|
||||
|
||||
foo = close_ao_output();
|
||||
fprintf(stderr, "AO close -> %d\n", foo);
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
/* --------------------------------------------------------------------- */
|
||||
Reference in New Issue
Block a user