Changeset 3589:702473d502ab in roaraudio for roard/driver_shout.c
- Timestamp:
- 02/28/10 05:37:45 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/driver_shout.c
r3517 r3589 43 43 shout_t * shout; 44 44 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 55 45 switch (info->codec) { 56 46 case ROAR_CODEC_DEFAULT: … … 64 54 break; 65 55 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)); 67 57 return -1; 68 58 break; … … 211 201 inst->inst = (void*)shout; 212 202 inst->write = driver_shout_write; 203 inst->close = driver_shout_close; 213 204 214 205 return 0; 215 206 } 216 207 217 int driver_shout_close( DRIVER_USERDATA_T inst) {218 219 shout_close((shout_t *) ((struct roar_vio_calls *)inst)->inst);208 int driver_shout_close(struct roar_vio_calls * vio) { 209 210 shout_close((shout_t *)vio->inst); 220 211 221 212 if ( _driver_shout_usage_counter-- == 1 )
Note: See TracChangeset
for help on using the changeset viewer.