source: roaraudio/libroaryiff/playback.c @ 343:77ddfb3ce6de

Last change on this file since 343:77ddfb3ce6de was 343:77ddfb3ce6de, checked in by phi, 16 years ago

added playback.c, ctl.c and audiocd.c

File size: 724 bytes
Line 
1//playback.c:
2
3#include <libroaryiff.h>
4
5YID YStartPlaySoundObjectSimple (YConnection *con, const char *path) {
6 return YStartPlaySoundObject(con, path, NULL);
7}
8
9YID YStartPlaySoundObject (YConnection *con, const char *path, YEventSoundPlay *value) {
10 if ( !con )
11  return YIDNULL;
12
13 if ( !path )
14  return YIDNULL;
15
16 // hm,... find out how to do this.
17 // need to start ssize_t roar_file_play (struct roar_connection * con, char * file, int exec)
18 // in background
19
20
21 return YIDNULL;
22}
23
24void YDestroyPlaySoundObject(YConnection *con, YID yid) {
25 struct roar_connection rcon;
26
27 if ( !con )
28  return ;
29
30 if ( yid == YIDNULL )
31  return;
32
33 rcon.fh = con->fd;
34
35 roar_kick(&rcon, ROAR_OT_STREAM, ROARYIFF_YID2ROAR(yid));
36}
37
38//ll
Note: See TracBrowser for help on using the repository browser.