lib/complexTypes/AudioCodec.js
function checkAudioCodec(key, value)
{
  if(typeof value != 'string')
    throw SyntaxError(key+' param should be a String, not '+typeof value);

  if(!value.match('OPUS|PCMU|RAW'))
    throw SyntaxError(key+' param is not one of [OPUS|PCMU|RAW] ('+value+')');
}
function checkAudioCodec(key, value)
{
  if(typeof value != 'string')
    throw SyntaxError(key+' param should be a String, not '+typeof value);

  if(!value.match('OPUS|PCMU|RAW'))
    throw SyntaxError(key+' param is not one of [OPUS|PCMU|RAW] ('+value+')');
}
function checkAudioCodec ( key , value ) { if ( typeof value != 'string' ) throw SyntaxError ( key + ' param should be a String, not ' + typeof value ) ; if ( ! value . match ( 'OPUS|PCMU|RAW' ) ) throw SyntaxError ( key + ' param is not one of [OPUS|PCMU|RAW] (' + value + ')' ) ; }
Codec used for transmission of audio.

@typedef core/complexTypes.AudioCodec

@type {(OPUS|PCMU|RAW)}
 
Checker for {@link module:core/complexTypes.AudioCodec}

@memberof module:core/complexTypes

@param {external:String} key
@param {module:core/complexTypes.AudioCodec} value
Codec used for transmission of audio .