diff options
author | Chris Robinson <[email protected]> | 2016-07-29 21:55:43 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-07-29 21:55:43 -0700 |
commit | b5b3ea95f899410a5392fb633ace74c10bbd9921 (patch) | |
tree | bc66330db4d484395d1391fb5bd64cb68edeff6d /Alc/backends/opensl.c | |
parent | 96e83f95eef5be8e1f64a1a2e61810cb7b82ff5c (diff) |
Add a config to output first-, second-, or third-order ambisonics
Currently incomplete, as second- and third-order output will not correctly
handle B-Format input buffers. A standalone up-sampler will be needed, similar
to the high-quality decoder.
Also, output is ACN ordering with SN3D normalization. A config option will
eventually be provided to change this if desired.
Diffstat (limited to 'Alc/backends/opensl.c')
-rw-r--r-- | Alc/backends/opensl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Alc/backends/opensl.c b/Alc/backends/opensl.c index 7b8fdb25..7e053b81 100644 --- a/Alc/backends/opensl.c +++ b/Alc/backends/opensl.c @@ -79,7 +79,11 @@ static SLuint32 GetChannelMask(enum DevFmtChannels chans) SL_SPEAKER_FRONT_CENTER|SL_SPEAKER_LOW_FREQUENCY| SL_SPEAKER_BACK_LEFT|SL_SPEAKER_BACK_RIGHT| SL_SPEAKER_SIDE_LEFT|SL_SPEAKER_SIDE_RIGHT; - case DevFmtBFormat3D: break; + case DevFmtBFormat3D: + case DevFmtAmbi1: + case DevFmtAmbi2: + case DevFmtAmbi3: + break; } return 0; } |