mirror of
https://github.com/overte-org/overte.git
synced 2025-07-24 19:44:06 +02:00
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
//
|
|
// AbstractAudioInterface.h
|
|
// libraries/audio/src
|
|
//
|
|
// Created by Brad Hefta-Gaub on 12/4/13.
|
|
// Copyright 2013 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_AbstractAudioInterface_h
|
|
#define hifi_AbstractAudioInterface_h
|
|
|
|
#include <QtCore/QObject>
|
|
#include <QtMultimedia/qaudiooutput.h>
|
|
|
|
#include <udt/PacketHeaders.h>
|
|
|
|
#include "AudioInjectorOptions.h"
|
|
|
|
class AudioInjector;
|
|
class AudioInjectorLocalBuffer;
|
|
class Transform;
|
|
|
|
class AbstractAudioInterface : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
AbstractAudioInterface(QObject* parent = 0) : QObject(parent) {};
|
|
|
|
static void emitAudioPacket(const void* audioData, size_t bytes, quint16& sequenceNumber, const Transform& transform, PacketType packetType);
|
|
|
|
public slots:
|
|
virtual bool outputLocalInjector(bool isStereo, AudioInjector* injector) = 0;
|
|
|
|
virtual void setIsStereoInput(bool stereo) = 0;
|
|
};
|
|
|
|
Q_DECLARE_METATYPE(AbstractAudioInterface*)
|
|
|
|
#endif // hifi_AbstractAudioInterface_h
|