Changeset 3154:5533e4755cb3 in roaraudio


Ignore:
Timestamp:
01/15/10 16:28:39 (10 years ago)
Author:
phi
Branch:
default
Message:

support SOUND_MIXER_READ_RECSRC and SOUND_MIXER_WRITE_RECSRC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroaross/libroaross.c

    r3153 r3154  
    481481  case SOUND_MIXER_PRIVATE5:         name = "SOUND_MIXER_PRIVATE5";         break; 
    482482  case OSS_GETVERSION:               name = "OSS_GETVERSION";               break; 
    483   case SOUND_MIXER_READ_RECSRC:      name = "SOUND_MIXER_READ_RECSRC";      break; 
    484483  case SOUND_MIXER_READ_STEREODEVS:  name = "SOUND_MIXER_READ_STEREODEVS";  break; 
    485484  case SOUND_MIXER_READ_CAPS:        name = "SOUND_MIXER_READ_CAPS";        break; 
    486   case SOUND_MIXER_WRITE_RECSRC:     name = "SOUND_MIXER_WRITE_RECSRC";     break; 
    487485/* 
    488486  case :     name = "";     break; 
     
    567565   break; 
    568566  case SOUND_MIXER_READ_RECMASK: 
     567  case SOUND_MIXER_READ_RECSRC: 
    569568    *ip = SOUND_MASK_VOLUME; // we can currently only read from mixer 
    570569    return 0; 
     570   break; 
     571  case SOUND_MIXER_WRITE_RECSRC: 
     572    if ( *ip == SOUND_MASK_VOLUME ) { 
     573     return  0; 
     574    } else { 
     575     errno = ENOTSUP; 
     576     return -1; 
     577    } 
    571578   break; 
    572579 } 
Note: See TracChangeset for help on using the changeset viewer.