code: def create(fs, channels, application):
      
  
      result_code = ctypes.c_int()
  
      result = _create(fs, channels, application, ctypes.byref(result_code))
      if result_code.value is not constants.OK:
          raise OpusError(result_code.value)
  
      return result
docs: Allocates and initializes an encoder state.