Changeset 5055:db7a96528119 in roaraudio


Ignore:
Timestamp:
06/02/11 11:06:55 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

support auto reconf bits=32->16 in case not supported (See: #48)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/driver_oss.c

    r4957 r5055  
    135135#endif 
    136136 
     137 if ( autoconfig ) { 
     138  if ( info->bits > 16 ) { 
     139   info->bits = 32; 
     140   need_update_server = 1; 
     141  } 
     142 
     143  if ( info->bits == 32 ) { 
     144   switch (info->codec) { 
     145#ifndef AFMT_S32_LE 
     146    case ROAR_CODEC_PCM_S_LE: 
     147#endif 
     148#ifndef AFMT_S32_BE 
     149    case ROAR_CODEC_PCM_S_BE: 
     150#endif 
     151    case ROAR_CODEC_PCM_U_LE: 
     152    case ROAR_CODEC_PCM_U_BE: 
     153      info->bits = 16; 
     154      need_update_server = 1; 
     155     break; 
     156   } 
     157  } 
     158 } 
     159 
    137160 switch (info->codec) { 
    138161  case ROAR_CODEC_PCM_S_LE: 
Note: See TracChangeset for help on using the changeset viewer.