Changeset 2508:49c691225a30 in roaraudio
- Timestamp:
- 09/01/09 13:31:31 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/driver.c
r2507 r2508 32 32 NULL, driver_esd_close, driver_esd_open_vio}, 33 33 #endif 34 { "roar", "RoarAudio driver", "localhost, remote.host.dom", DRV_FLAG_NONE, ROAR_SUBSYS_WAVEFORM, 34 { "roar", "RoarAudio driver", "localhost, remote.host.dom", DRV_FLAG_NONE, 35 ROAR_SUBSYS_WAVEFORM|ROAR_SUBSYS_MIDI|ROAR_SUBSYS_LIGHT, 35 36 NULL, driver_roar_close, driver_roar_open_vio}, 36 37 #ifdef ROAR_HAVE_IO_POSIX -
roard/driver_roar.c
r2367 r2508 26 26 27 27 int driver_roar_open_vio(struct roar_vio_calls * inst, char * device, struct roar_audio_info * info, int fh, struct roar_stream_server * sstream) { 28 int dir = ROAR_DIR_PLAY; 28 29 29 30 if ( fh != -1 ) { // this is a connection to a roard, no roar_simple_*() interface avalible for this case … … 31 32 } 32 33 33 if ( (fh = roar_simple_play(info->rate, info->channels, info->bits, info->codec, device, "roard")) == -1 ) { 34 if ( sstream != NULL ) { 35 switch (ROAR_STREAM(sstream)->dir) { 36 case ROAR_DIR_OUTPUT: dir = ROAR_DIR_PLAY; break; 37 case ROAR_DIR_MIDI_OUT: dir = ROAR_DIR_MIDI_IN; break; 38 case ROAR_DIR_LIGHT_OUT: dir = ROAR_DIR_LIGHT_IN; break; 39 // TODO: we need to know a real pos id for raw streams... 40 // case ROAR_DIR_RAW_OUT: dir = ROAR_DIR_RAW_IN; break; 41 default: 42 return -1; 43 } 44 } 45 46 if ( (fh = roar_simple_stream(info->rate, info->channels, info->bits, info->codec, device, dir, "roard")) == -1 ) { 34 47 return -1; 35 48 }
Note: See TracChangeset
for help on using the changeset viewer.