Changeset 3589:702473d502ab in roaraudio


Ignore:
Timestamp:
02/28/10 05:37:45 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

updated driver shout

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TODO

    r3588 r3589  
    1616 * (0.3 W/H/-) Get into Debian 
    1717 * (0.3 W/N/-) Clean and update libroarpulse 
    18  * (0.3 W/h/-) Cleanup driver: DMX, ESD, Roar, Shout 
     18 * (0.3 W/h/-) Cleanup driver: DMX, ESD, Roar 
    1919 * (0.3 W/N/-) Implement ALSA support 
    2020 * (0.3 W/L/-) Implement support for ICY Meta Data 
  • roard/driver.c

    r3588 r3589  
    5757#ifdef ROAR_HAVE_LIBSHOUT 
    5858 {"shout", "libshout streaming", "http://user:pw@host:port/mount.ogg", DRV_FLAG_NONE, ROAR_SUBSYS_WAVEFORM, 
    59   NULL, driver_shout_close, driver_shout_open_vio}, 
     59  NULL, NULL, driver_shout_open_vio}, 
    6060#endif 
    6161#ifdef ROAR_HAVE_LIBSNDIO 
  • roard/driver_shout.c

    r3517 r3589  
    4343 shout_t * shout; 
    4444 
    45 /* 
    46  if ( info->codec == ROAR_CODEC_DEFAULT ) 
    47   info->codec = ROAR_CODEC_OGG_VORBIS; 
    48  
    49  if ( info->codec != ROAR_CODEC_OGG_VORBIS ) { 
    50   ROAR_ERR("This driver only supports Ogg/Vorbis, current codec is %s", roar_codec2str(info->codec)); 
    51   return -1; 
    52  } 
    53 */ 
    54  
    5545 switch (info->codec) { 
    5646  case ROAR_CODEC_DEFAULT: 
     
    6454   break; 
    6555  default: 
    66     ROAR_ERR("This driver only supports Ogg/Vorbis, current codec is %s", roar_codec2str(info->codec)); 
     56    ROAR_ERR("This driver only supports Ogg/* (most common is Ogg/Vorbis), current codec is %s", roar_codec2str(info->codec)); 
    6757    return -1; 
    6858   break; 
     
    211201 inst->inst  = (void*)shout; 
    212202 inst->write = driver_shout_write; 
     203 inst->close = driver_shout_close; 
    213204 
    214205 return 0; 
    215206} 
    216207 
    217 int     driver_shout_close(DRIVER_USERDATA_T   inst) { 
    218  
    219  shout_close((shout_t *)((struct roar_vio_calls *)inst)->inst); 
     208int     driver_shout_close(struct roar_vio_calls * vio) { 
     209 
     210 shout_close((shout_t *)vio->inst); 
    220211 
    221212 if ( _driver_shout_usage_counter-- == 1 ) 
  • roard/include/driver_shout.h

    r3517 r3589  
    2828 
    2929int     driver_shout_open_vio(struct roar_vio_calls * inst, char * device, struct roar_audio_info * info, int fh, struct roar_stream_server * sstream); 
    30 int     driver_shout_close(DRIVER_USERDATA_T   inst); 
    3130ssize_t driver_shout_write(struct roar_vio_calls * vio, void *buf, size_t count); 
     31int     driver_shout_close(struct roar_vio_calls * vio); 
    3232 
    3333#endif 
Note: See TracChangeset for help on using the changeset viewer.