YGetAudioStats(3)

YGetAudioStats3

Current audio values retrieving

Usage

#include <Y2/Y.h>
#include <Y2/Ylib.h>

int YGetAudioStats(

YConnection *connection,

YEventAudioStats *buf
)

Arguments

connection

Specifies the connection to the Y server, obtained by a call to YOpenConnection.

buf

Specifies a pointer to the buffer to hold the retrieved Audio stats. See YEventAudioStats for information about this structure.

Overview

The YGetAudioStats function fetches the current Audio values from the Y server and stores them into the pointer buf.

Return value

The YGetAudioStats function returns 0 on success and -1 on error.

Examples

#include <stdio.h>
#include <Y2/Y.h>
#include <Y2/Ylib.h>

int main(int argc, char *argv[])
{

YEventAudioStats buf;

YConnection *con = YOpenConnection(

"/usr/sbin/starty",

"127.0.0.1:9433"

);

if(con == NULL)

return(1);

if(YGetAudioStats(con, &buf))

printf("Failed.\n");

else

printf("Success.\n");

YCloseConnection(con, False);

return(0);
}

Releases

6 releases since Debian 2.2 (Potato); the text changed 2 times.

  1. 2.2
  2. 3.0
  3. 3.1–6.0

From liby-dev 2.14.5-7 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.