mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05:00
Fix compile errors/warnings
Fix compile errors/warnings. omixer is removed since ordinary_mixer isn't supported any more.
This commit is contained in:
parent
8495f42feb
commit
84ebfe7c92
10 changed files with 68 additions and 49 deletions
|
|
@ -18,19 +18,22 @@ void normalize(struct timeval *tv)
|
|||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED)
|
||||
{
|
||||
snd_seq_t *handle;
|
||||
int portid;
|
||||
int npfd;
|
||||
struct pollfd *pfd;
|
||||
/* int npfd;
|
||||
struct pollfd *pfd;
|
||||
*/
|
||||
int queue;
|
||||
int i;
|
||||
int rval;
|
||||
/* int i;
|
||||
int rval;'
|
||||
*/
|
||||
struct timeval starttv, prevdiff;
|
||||
int countdown = -1;
|
||||
snd_seq_queue_timer_t *timer;
|
||||
snd_timer_id_t *timerid;
|
||||
/* snd_seq_queue_timer_t *timer;
|
||||
snd_timer_id_t *timerid;
|
||||
*/
|
||||
|
||||
if (snd_seq_open(&handle, "hw", SND_SEQ_OPEN_DUPLEX, 0) < 0) {
|
||||
fprintf(stderr, "failed to open ALSA sequencer interface\n");
|
||||
|
|
@ -98,9 +101,9 @@ main(int argc, char **argv)
|
|||
|
||||
fprintf(stderr, " real time: %12ld sec %8ld usec\nqueue time: %12ld sec %8ld usec\n diff: %12ld sec %8ld usec\n diffdiff: %12ld sec %8ld usec\n",
|
||||
tv.tv_sec, tv.tv_usec,
|
||||
rtime->tv_sec, rtime->tv_nsec / 1000,
|
||||
(long)rtime->tv_sec, (long)rtime->tv_nsec / 1000,
|
||||
diff.tv_sec, diff.tv_usec,
|
||||
diffdiff.tv_sec, diffdiff.tv_usec);
|
||||
(long)diffdiff.tv_sec, (long)diffdiff.tv_usec);
|
||||
|
||||
if (diffdiff.tv_usec > 5000 ||
|
||||
diffdiff.tv_usec < -5000) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue