Changeset 3589:702473d502ab in roaraudio
- Timestamp:
- 02/28/10 05:37:45 (14 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TODO
r3588 r3589 16 16 * (0.3 W/H/-) Get into Debian 17 17 * (0.3 W/N/-) Clean and update libroarpulse 18 * (0.3 W/h/-) Cleanup driver: DMX, ESD, Roar , Shout18 * (0.3 W/h/-) Cleanup driver: DMX, ESD, Roar 19 19 * (0.3 W/N/-) Implement ALSA support 20 20 * (0.3 W/L/-) Implement support for ICY Meta Data -
roard/driver.c
r3588 r3589 57 57 #ifdef ROAR_HAVE_LIBSHOUT 58 58 {"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}, 60 60 #endif 61 61 #ifdef ROAR_HAVE_LIBSNDIO -
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 ) -
roard/include/driver_shout.h
r3517 r3589 28 28 29 29 int 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);31 30 ssize_t driver_shout_write(struct roar_vio_calls * vio, void *buf, size_t count); 31 int driver_shout_close(struct roar_vio_calls * vio); 32 32 33 33 #endif
Note: See TracChangeset
for help on using the changeset viewer.