YStopAudioCD(3)

NAME

YStopAudioCD - Audio CD stopping

SYNTAX

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

DESCRIPTION

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.

EXAMPLE

#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)
/* Stop audio CD from playing. */
YStopAudioCD(con);
YCloseConnection(con, False);
return(0);
}

SEE ALSO

YPlayAudioCDTrack(3) YEjectAudioCD(3) YGetAudioCDTracks(3) YFreeAudioCDTracksList(3)
Copyright © 2010-2025 Platon Technologies, s.r.o.           Index | Man stránky | tLDP | Dokumenty | Utilitky | O projekte
Design by styleshout