mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
update simple API
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@193 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
f05a4ac806
commit
b772564a4e
7 changed files with 153 additions and 11 deletions
|
|
@ -56,6 +56,17 @@ int main(int argc, char*argv[]) {
|
|||
uint8_t buf[BUFSIZE];
|
||||
ssize_t r;
|
||||
|
||||
#if 0
|
||||
pa_usec_t latency;
|
||||
|
||||
if ((latency = pa_simple_get_playback_latency(s, &error)) == (pa_usec_t) -1) {
|
||||
fprintf(stderr, __FILE__": pa_simple_get_playback_latency() failed: %s\n", pa_strerror(error));
|
||||
goto finish;
|
||||
}
|
||||
|
||||
fprintf(stderr, "%0.0f usec \r", (float)latency);
|
||||
#endif
|
||||
|
||||
/* Read some data ... */
|
||||
if ((r = read(STDIN_FILENO, buf, sizeof(buf))) <= 0) {
|
||||
if (r == 0) /* EOF */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue