wip
This commit is contained in:
parent
bc66ce5855
commit
609a9e2b3c
@ -240,7 +240,6 @@ int beep_test(void)
|
|||||||
if (frames > 0 && frames < FRAMES)
|
if (frames > 0 && frames < FRAMES)
|
||||||
printf("Short write (expected %li, wrote %li)\n", FRAMES, (long)frames);
|
printf("Short write (expected %li, wrote %li)\n", FRAMES, (long)frames);
|
||||||
}
|
}
|
||||||
snd_pcm_close(handle);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -265,10 +264,12 @@ int beep_init()
|
|||||||
printf("Playback open error: %s\n", snd_strerror(err));
|
printf("Playback open error: %s\n", snd_strerror(err));
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
int beep_close()
|
int beep_close()
|
||||||
{
|
{
|
||||||
|
snd_pcm_close(handle);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user