Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
iframe_writer.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 Roc Streaming authors
3
*
4
* This Source Code Form is subject to the terms of the Mozilla Public
5
* License, v. 2.0. If a copy of the MPL was not distributed with this
6
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
*/
8
9
//! @file roc_audio/iframe_writer.h
10
//! @brief Frame writer interface.
11
12
#ifndef ROC_AUDIO_IFRAME_WRITER_H_
13
#define ROC_AUDIO_IFRAME_WRITER_H_
14
15
#include "
roc_audio/frame.h
"
16
#include "
roc_core/list_node.h
"
17
18
namespace
roc
{
19
namespace
audio {
20
21
//! Frame writer interface.
22
class
IFrameWriter
:
public
core::ListNode
<> {
23
public
:
24
virtual
~
IFrameWriter
();
25
26
//! Write audio frame.
27
virtual
void
write
(
Frame
& frame) = 0;
28
};
29
30
}
// namespace audio
31
}
// namespace roc
32
33
#endif
// ROC_AUDIO_IFRAME_WRITER_H_
roc::audio::Frame
Audio frame.
Definition:
frame.h:25
roc::audio::IFrameWriter
Frame writer interface.
Definition:
iframe_writer.h:22
roc::audio::IFrameWriter::write
virtual void write(Frame &frame)=0
Write audio frame.
roc::core::ListNode
Base class for List element.
Definition:
list_node.h:48
frame.h
Audio frame.
list_node.h
Linked list node.
roc
Root namespace.
roc_audio
iframe_writer.h
Generated by
1.9.1