/*
* SPDX-License-Identifier: GPL-3.0-only
* MuseScore-CLA-applies
*
* MuseScore
* Music Composition & Notation
*
* Copyright (C) 2021 MuseScore BVBA and others
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
#ifndef MU_AUDIO_IAUDIOOUTPUT_H
#define MU_AUDIO_IAUDIOOUTPUT_H
#include
#include "async/promise.h"
#include "async/channel.h"
#include "audiotypes.h"
namespace mu::audio {
class IAudioOutput
{
public:
virtual ~IAudioOutput() = default;
virtual async::Promise outputParams(const TrackSequenceId sequenceId, const TrackId trackId) const = 0;
virtual void setOutputParams(const TrackSequenceId sequenceId, const TrackId trackId, const AudioOutputParams& params) = 0;
virtual async::Channel outputParamsChanged() const = 0;
virtual async::Promise masterOutputParams() const = 0;
virtual void setMasterOutputParams(const AudioOutputParams& params) = 0;
virtual async::Channel masterOutputParamsChanged() const = 0;
virtual async::Promise availableOutputResources() const = 0;
virtual async::Promise signalChanges(const TrackSequenceId sequenceId, const TrackId trackId) const = 0;
virtual async::Promise masterSignalChanges() const = 0;
};
using IAudioOutputPtr = std::shared_ptr;
}
#endif // MU_AUDIO_IAUDIOOUTPUT_H