Changeset 3589:702473d502ab in roaraudio for roard/driver_shout.c


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

updated driver shout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 ) 
Note: See TracChangeset for help on using the changeset viewer.