Changeset 3799:af6e15ab94f5 in roaraudio
- Timestamp:
- 05/07/10 18:38:49 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/driver_esd.c
r3591 r3799 27 27 #ifdef ROAR_HAVE_ESD 28 28 29 /*30 We could use inst as our fh directly. But esd works with unsigned at 8 bits and31 signed at 16 bits per sample. (why???) so we need to convert because we get signed at both,32 8 and 16 bits per sample. so we use inst as an array of two ints: 0: fh, 1: are we in 8 bit mode?33 */34 35 29 int driver_esd_open_vio(struct roar_vio_calls * inst, char * device, struct roar_audio_info * info, int fh, struct roar_stream_server * sstream) { 36 30 esd_format_t format = ESD_STREAM | ESD_PLAY; 37 char name[ 80] = "roard";31 char name[] = "roard"; 38 32 39 33 if ( fh != -1 ) … … 60 54 fh = esd_play_stream_fallback(format, info->rate, device, name); 61 55 62 shutdown(fh, SHUT_RD);63 64 56 roar_vio_set_fh(inst, fh); 57 roar_vio_shutdown(inst, ROAR_VIO_SHUTDOWN_READ); 65 58 66 59 return 0;
Note: See TracChangeset
for help on using the changeset viewer.