Added check for n channels to verify if compressed or raw