check method

void check(
  1. int result,
  2. String operation
)

Throws FmodException when result is not FMOD_OK.

Implementation

void check(int result, String operation) {
  if (result != fmodOk) throw FmodException(operation, result);
}