oxfw: Fix a bug to add channel constraint

When stream formations have a series of PCM channels like [2,6,2,6],
this constraint doesn't work well.
oxfw: Improve code format and comments