Changeset 2260:bf80036b2d54 in roaraudio


Ignore:
Timestamp:
07/29/09 02:40:08 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

check for codecs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarinterconnect.c

    r2229 r2260  
    187187    } 
    188188 
     189    // this is only true if the esd runs on a LE system,... 
     190    if ( bits == 8 && codec != ROAR_CODEC_PCM_U_LE ) { 
     191     fprintf(stderr, "Error: EsounD only supports unsigned PCM in 8 bit mode\n"); 
     192     return 2; 
     193    } else if ( bits == 16 && codec != ROAR_CODEC_DEFAULT ) { 
     194     fprintf(stderr, "Error: EsounD only supports signed PCM in 16 bit mode\n"); 
     195     return 2; 
     196    } 
     197 
    189198    rfh = esd_filter_stream(tmp, rate, remote, "roarinterconnect"); 
    190199   break; 
Note: See TracChangeset for help on using the changeset viewer.