Changeset 3799:af6e15ab94f5 in roaraudio


Ignore:
Timestamp:
05/07/10 18:38:49 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

some cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/driver_esd.c

    r3591 r3799  
    2727#ifdef ROAR_HAVE_ESD 
    2828 
    29 /* 
    30  We could use inst as our fh directly. But esd works with unsigned at 8 bits and 
    31  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  
    3529int driver_esd_open_vio(struct roar_vio_calls * inst, char * device, struct roar_audio_info * info, int fh, struct roar_stream_server * sstream) { 
    3630 esd_format_t format = ESD_STREAM | ESD_PLAY; 
    37  char name[80] = "roard"; 
     31 char name[] = "roard"; 
    3832 
    3933 if ( fh != -1 ) 
     
    6054 fh = esd_play_stream_fallback(format, info->rate, device, name); 
    6155 
    62  shutdown(fh, SHUT_RD); 
    63  
    6456 roar_vio_set_fh(inst, fh); 
     57 roar_vio_shutdown(inst, ROAR_VIO_SHUTDOWN_READ); 
    6558 
    6659 return 0; 
Note: See TracChangeset for help on using the changeset viewer.