Nagram/TMessagesProj/jni/voip/webrtc/call/audio_sender.h

31 lines
777 B
C
Raw Normal View History

2020-03-30 12:00:09 +00:00
/*
2020-08-14 16:58:22 +00:00
* Copyright (c) 2020 The WebRTC project authors. All Rights Reserved.
2020-03-30 12:00:09 +00:00
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
2020-08-14 16:58:22 +00:00
#ifndef CALL_AUDIO_SENDER_H_
#define CALL_AUDIO_SENDER_H_
#include <memory>
#include "api/audio/audio_frame.h"
2020-03-30 12:00:09 +00:00
namespace webrtc {
2020-08-14 16:58:22 +00:00
class AudioSender {
public:
// Encode and send audio.
virtual void SendAudioData(std::unique_ptr<AudioFrame> audio_frame) = 0;
2020-03-30 12:00:09 +00:00
2020-08-14 16:58:22 +00:00
virtual ~AudioSender() = default;
};
2020-03-30 12:00:09 +00:00
} // namespace webrtc
2020-08-14 16:58:22 +00:00
#endif // CALL_AUDIO_SENDER_H_