getApproximateVolume method

double getApproximateVolume(
  1. int channel
)

Gets the approximate volume for output per output channel (i.e, per speaker).

channel the channel. Return zero for invalid parameters.

Implementation

double getApproximateVolume(int channel) {
  if (!isInitialized) {
    throw const SoLoudNotInitializedException();
  }
  return _controller.soLoudFFI.getApproximateVolume(channel);
}