Changeset 3149:6c63a8abcef2 in roaraudio


Ignore:
Timestamp:
01/15/10 14:28:49 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

corrected list of formats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroaross/libroaross.c

    r3148 r3149  
    389389} 
    390390 
     391static inline int _ioctl_stream_format_list (void) { 
     392 int format = 0; 
     393 
     394 format |= AFMT_S8; 
     395 format |= AFMT_U8; 
     396 
     397 format |= AFMT_S16_BE; 
     398 format |= AFMT_S16_LE; 
     399 
     400 format |= AFMT_U16_BE; 
     401 format |= AFMT_U16_LE; 
     402 
     403#ifdef AFMT_S32_BE 
     404 format |= AFMT_S32_BE; 
     405#endif 
     406#ifdef AFMT_S32_LE 
     407 format |= AFMT_S32_LE; 
     408#endif 
     409 
     410 format |= AFMT_A_LAW; 
     411 format |= AFMT_MU_LAW; 
     412 
     413#ifdef AFMT_VORBIS 
     414 format |= AFMT_VORBIS; 
     415#endif 
     416 
     417 return format; 
     418} 
     419 
    391420// ------------------------------------- 
    392421// emulated functions follow: 
     
    519548      case SNDCTL_DSP_GETFMTS: 
    520549        ROAR_DBG("ioctl(__fd=%i, __request=%lu): ip=%p", __fd, (long unsigned int) __request, ip); 
    521         *ip = AFMT_S8|AFMT_S16_LE; 
     550        *ip = _ioctl_stream_format_list(); 
    522551        return 0; 
    523552       break; 
Note: See TracChangeset for help on using the changeset viewer.