YStopAudioCD(3)

YStopAudioCD3

Audio cd stopping

Usage

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

int YStopAudioCD(

YConnection *con
)

Arguments

connection

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

Overview

The YStopAudioCD function stops the audio CD (if it is currently playing).

This function will generate a YAudioCD event with minor op code YAudioCDStop that will be sent to all clients.

Return value

The YStopAudioCD function returns -1 on error, 0 on success. 0 can also be returned even if no audio CD is present or the audio CD was not playing.

Examples

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

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

YConnection *con = YOpenConnection(

"/usr/sbin/starty",

"127.0.0.1:9433"

);

if(con == NULL)

return(1);

/* Stop audio CD from playing. */

YStopAudioCD(con);

YCloseConnection(con, False);

return(0);
}

Releases

Unchanged in 4 releases since Debian 3.1 (Sarge).

  1. 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.