Ambisonics functions.
More...
#include "ame_AudioBuffer.hpp"
#include "ame_Math.hpp"
#include "ame_Util.hpp"
#include <array>
#include <cassert>
#include <cstdint>
Go to the source code of this file.
|
| template<typename FloatType > |
| constexpr void | ame::dsp::encodeAmbisonics1st (FloatType in, Ambisonics3D1st< FloatType > &out, const Polar< FloatType > &pos) |
| | Mono to Ambisonics 1st encode. More...
|
| |
| template<typename FloatType > |
| constexpr void | ame::dsp::encodeAmbisonics1st (FloatType in, Ambisonics2D1st< FloatType > &out, const FloatType azimuth) |
| | Mono to Ambisonics 1st encode. More...
|
| |
| template<typename FloatType > |
| constexpr FloatType | ame::dsp::decodeAmbisonics1st (const Ambisonics3D1st< FloatType > &in, const Polar< FloatType > &pos) |
| | Ambisonics 1st to Mono decode. More...
|
| |
| template<typename FloatType > |
| constexpr FloatType | ame::dsp::decodeAmbisonics1st (const Ambisonics2D1st< FloatType > &in, const FloatType azimuth) |
| | Ambisonics 1st to Mono decode. More...
|
| |
Ambisonics functions.
- Author
- Akiyuki Okayasu (akiyu.nosp@m.ki.o.nosp@m.kayas.nosp@m.u@gm.nosp@m.ail.c.nosp@m.om)
- Copyright
- Copyright (c) 2021 - Akiyuki Okayasu
AME is released under the MIT license.
◆ decodeAmbisonics1st() [1/2]
template<typename FloatType >
| constexpr FloatType ame::dsp::decodeAmbisonics1st |
( |
const Ambisonics2D1st< FloatType > & |
in, |
|
|
const FloatType |
azimuth |
|
) |
| |
|
constexpr |
Ambisonics 1st to Mono decode.
- Template Parameters
-
- Parameters
-
| in | Ambisonics 1st audio |
| azimuth | Speaker position in radian [-π, π] |
- Returns
- constexpr FloatType
◆ decodeAmbisonics1st() [2/2]
template<typename FloatType >
| constexpr FloatType ame::dsp::decodeAmbisonics1st |
( |
const Ambisonics3D1st< FloatType > & |
in, |
|
|
const Polar< FloatType > & |
pos |
|
) |
| |
|
constexpr |
Ambisonics 1st to Mono decode.
- Template Parameters
-
- Parameters
-
| in | Ambisonics 1st audio |
| pos | Speaker position in radian [-π, π] |
- Returns
- constexpr FloatType
◆ encodeAmbisonics1st() [1/2]
template<typename FloatType >
| constexpr void ame::dsp::encodeAmbisonics1st |
( |
FloatType |
in, |
|
|
Ambisonics2D1st< FloatType > & |
out, |
|
|
const FloatType |
azimuth |
|
) |
| |
|
constexpr |
Mono to Ambisonics 1st encode.
- Template Parameters
-
- Parameters
-
| in | Audio in |
| out | Ambisonics audio
|
| pos | Source position in radian [-π, π] |
◆ encodeAmbisonics1st() [2/2]
template<typename FloatType >
| constexpr void ame::dsp::encodeAmbisonics1st |
( |
FloatType |
in, |
|
|
Ambisonics3D1st< FloatType > & |
out, |
|
|
const Polar< FloatType > & |
pos |
|
) |
| |
|
constexpr |
Mono to Ambisonics 1st encode.
- Template Parameters
-
- Parameters
-
| in | Audio in |
| out | Ambisonics audio
|
| pos | Source position in radian [-π, π] |