Changeset 3710:19d0c73a948c in roaraudio for libroarrsound


Ignore:
Timestamp:
04/25/10 03:51:44 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support for rsd_pause()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarrsound/libroarrsound.c

    r3708 r3710  
    273273/* Pauses or unpauses a stream. pause -> enable = 1 
    274274   This function essentially calls on start() and stop(). This behavior might be changed later. */ 
    275 int rsd_pause (rsound_t *rd, int enable); 
     275int rsd_pause (rsound_t *rd, int enable) { 
     276 struct libroarrsound * self = (struct libroarrsound *)rd; 
     277 
     278 if ( self == NULL ) 
     279  return -1; 
     280 
     281 if ( !(self->flags & LIBROARRSOUND_FLAGS_STREAMING) ) 
     282  return -1; 
     283 
     284 return roar_stream_set_flags(&(self->con), &(self->stream), ROAR_FLAG_PAUSE, enable ? ROAR_SET_FLAG : ROAR_RESET_FLAG); 
     285} 
    276286 
    277287//ll 
Note: See TracChangeset for help on using the changeset viewer.