Changeset 681
- Timestamp:
- 12/20/09 15:11:46 (2 years ago)
- Files:
-
- sweep/trunk/src/driver_oss.c (modified) (10 diffs)
- sweep/trunk/src/driver_solaris.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sweep/trunk/src/driver_oss.c
r676 r681 96 96 97 97 static sw_handle * 98 o pen_dev_dsp(int monitoring, int flags)98 oss_open (int monitoring, int flags) 99 99 { 100 100 char * dev_name; … … 134 134 135 135 static void 136 setup_dev_dsp (sw_handle * handle, sw_format * format)136 oss_setup (sw_handle * handle, sw_format * format) 137 137 { 138 138 int dev_dsp; … … 254 254 255 255 static int 256 wait_dev_dsp(sw_handle * handle)256 oss_wait (sw_handle * handle) 257 257 { 258 258 return 0; … … 260 260 261 261 static ssize_t 262 read_dev_dsp(sw_handle * handle, sw_audio_t * buf, size_t count)262 oss_read (sw_handle * handle, sw_audio_t * buf, size_t count) 263 263 { 264 264 gint16 * bbuf; … … 300 300 301 301 static ssize_t 302 write_dev_dsp(sw_handle * handle, sw_audio_t * buf, size_t count,302 oss_write (sw_handle * handle, sw_audio_t * buf, size_t count, 303 303 sw_framecount_t play_offset) 304 304 { … … 352 352 353 353 static sw_framecount_t 354 o ffset_dev_dsp(sw_handle * handle)354 oss_offset (sw_handle * handle) 355 355 { 356 356 count_info info; … … 392 392 393 393 static void 394 reset_dev_dsp(sw_handle * handle)394 oss_reset (sw_handle * handle) 395 395 { 396 396 if (handle == NULL) { … … 407 407 408 408 static void 409 flush_dev_dsp(sw_handle * handle)409 oss_flush (sw_handle * handle) 410 410 { 411 411 } 412 412 413 413 void 414 drain_dev_dsp(sw_handle * handle)414 oss_drain (sw_handle * handle) 415 415 { 416 416 if (handle == NULL) { … … 429 429 430 430 static void 431 close_dev_dsp(sw_handle * handle)431 oss_close (sw_handle * handle) 432 432 { 433 433 close (handle->driver_fd); … … 438 438 "OSS", 439 439 oss_get_names, 440 o pen_dev_dsp,441 setup_dev_dsp,442 wait_dev_dsp,443 read_dev_dsp,444 write_dev_dsp,445 o ffset_dev_dsp,446 reset_dev_dsp,447 flush_dev_dsp,448 drain_dev_dsp,449 close_dev_dsp,440 oss_open, 441 oss_setup, 442 oss_wait, 443 oss_read, 444 oss_write, 445 oss_offset, 446 oss_reset, 447 oss_flush, 448 oss_drain, 449 oss_close, 450 450 "oss_primary_device", 451 451 "oss_monitor_device", sweep/trunk/src/driver_solaris.c
r676 r681 48 48 #define DEV_AUDIO "/dev/audio" 49 49 50 static sw_handle dev_audio_handle = {50 static sw_handle solaris_handle = { 51 51 0, -1, 0, 0, NULL 52 52 }; 53 53 54 54 static sw_handle * 55 open_dev_audio(int cueing, int flags)55 solaris_open (int cueing, int flags) 56 56 { 57 57 int dev_audio; 58 sw_handle * handle = & dev_audio_handle;58 sw_handle * handle = &solaris_handle; 59 59 60 60 if (cueing) return NULL; … … 72 72 73 73 static void 74 s etup_dev_audio(sw_handle * handle, sw_format * format)74 solaris_setup (sw_handle * handle, sw_format * format) 75 75 { 76 76 audio_info_t info; … … 88 88 89 89 static ssize_t 90 write_dev_audio(sw_handle * handle, void * buf, size_t count)90 solaris_write (sw_handle * handle, void * buf, size_t count) 91 91 { 92 92 return write (handle->driver_fd, buf, count); … … 94 94 95 95 static void 96 reset_dev_audio(sw_handle * handle)96 solaris_reset (sw_handle * handle) 97 97 { 98 98 } 99 99 100 100 static void 101 flush_dev_audio(sw_handle * handle)101 solaris_flush (sw_handle * handle) 102 102 { 103 103 if (ioctl(handle->driver_fd, I_FLUSH, FLUSHW) == -1) … … 106 106 107 107 static void 108 drain_dev_audio(sw_handle * handle)108 solaris_drain (sw_handle * handle) 109 109 { 110 110 if(ioctl(handle->driver_fd, AUDIO_DRAIN, 0) == -1) … … 113 113 114 114 static void 115 close_dev_audio(sw_handle * handle)115 solaris_close (sw_handle * handle) 116 116 { 117 117 close (handle->driver_fd); … … 122 122 "Solaris", 123 123 NULL, /* config */ 124 open_dev_audio,125 s etup_dev_audio,124 solaris_open, 125 solaris_setup, 126 126 NULL, 127 write_dev_audio,128 reset_dev_audio,129 flush_dev_audio,130 drain_dev_audio,131 close_dev_audio,127 solaris_write, 128 solaris_reset, 129 solaris_flush, 130 solaris_drain, 131 solaris_close, 132 132 "solaris_primary_device", 133 133 "solaris_monitor_device",
