Changeset 790:00e2da6f9a65 in roaraudio for libroaryiff


Ignore:
Timestamp:
09/17/08 03:19:27 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added code for YStartPlaySoundObject(), maybe it will work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroaryiff/playback.c

    r688 r790  
    3030 
    3131YID YStartPlaySoundObject (YConnection *con, const char *path, YEventSoundPlay *value) { 
     32 struct roar_connection rcon; 
     33 struct roar_stream     stream[1]; 
     34 
    3235 if ( !con ) 
    3336  return YIDNULL; 
     
    3639  return YIDNULL; 
    3740 
     41 rcon.fh = con->fd; 
     42 
    3843 // hm,... find out how to do this. 
    3944 // need to start ssize_t roar_file_play (struct roar_connection * con, char * file, int exec) 
    4045 // in background 
    4146 
     47 if ( roar_file_play_full(&rcon, path, 0, 1, stream) == -1 ) { 
     48  ROAR_ERR("Can not start playback"); 
     49  return YIDNULL; 
     50 } 
    4251 
    43  return YIDNULL; 
     52 return ROARYIFF_ROAR2YID(stream->id); 
    4453} 
    4554 
Note: See TracChangeset for help on using the changeset viewer.