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#include "graph/graph_manager.h"
6
7namespace vraudio
8{
9
15
17{
18 delete api;
19}
20
21int ResonanceAudio::getAmbisonicOutput(const float *buffers[], const float *reverb[], int nChannels)
22{
25 if (!buffer || nChannels != buffer->num_channels())
26 return -1;
27
28 for (int i = 0; i < nChannels; ++i) {
29 buffers[i] = buffer->begin()[i].begin();
30 }
31
34 for (int i = 0; i < 2; ++i) {
36 }
37 }
38
39 return buffer->num_frames();
40}
41
42}