getChannelConfig

fun getChannelConfig(nChannel: Int): Int

Returns channel configuration from the number of channels.

Return

channel configuration (either AudioFormat.CHANNEL_IN_MONO or AudioFormat.CHANNEL_IN_STEREO)

Parameters

nChannel

1 for mono, 2 for stereo