Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
resonance_audio.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-3.0-only
4#include "graph/resonance_audio_api_impl.h"
5
6namespace vraudio
7{
8
15
16int ResonanceAudio::getAmbisonicOutput(const float *buffers[], const float *reverb[], int nChannels)
17{
18 auto impl = static_cast<ResonanceAudioApiImpl *>(api.get());
21 if (!buffer || nChannels != buffer->num_channels())
22 return -1;
23
24 for (int i = 0; i < nChannels; ++i) {
25 buffers[i] = buffer->begin()[i].begin();
26 }
27
30 for (int i = 0; i < 2; ++i) {
32 }
33 }
34
35 return buffer->num_frames();
36}
37
38}