Merged new-mixer branch...

This commit is contained in:
Jaroslav Kysela 1999-03-08 16:51:36 +00:00
parent e54aada1a6
commit c0e741dd8a
12 changed files with 307 additions and 19 deletions

21
test/timer.c Normal file
View file

@ -0,0 +1,21 @@
#include <stdio.h>
#include <string.h>
#include "../include/asoundlib.h"
void main(void)
{
int err;
void *handle;
snd_timer_general_info_t info;
if ((err = snd_timer_open(&handle))<0) {
fprintf(stderr, "timer open %i (%s)\n", err, snd_strerror(err));
exit(0);
}
if (snd_timer_general_info(handle, &info)<0) {
fprintf(stderr, "timer general info %i (%s)\n", err, snd_strerror(err));
exit(0);
}
printf("global timers = %i\n", info.count);
snd_timer_close(handle);
}