Rev | Line | |
---|
[343] | 1 | //playback.c: |
---|
| 2 | |
---|
| 3 | #include <libroaryiff.h> |
---|
| 4 | |
---|
| 5 | YID YStartPlaySoundObjectSimple (YConnection *con, const char *path) { |
---|
| 6 | return YStartPlaySoundObject(con, path, NULL); |
---|
| 7 | } |
---|
| 8 | |
---|
| 9 | YID 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 | |
---|
| 24 | void 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.