Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
null_writer.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018 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/null_writer.h
10
//! @brief Null writer.
11
12
#ifndef ROC_AUDIO_NULL_WRITER_H_
13
#define ROC_AUDIO_NULL_WRITER_H_
14
15
#include "
roc_audio/iframe_writer.h
"
16
#include "
roc_core/noncopyable.h
"
17
18
namespace
roc
{
19
namespace
audio {
20
21
//! Null writer.
22
class
NullWriter
:
public
IFrameWriter
,
public
core::NonCopyable
<> {
23
public
:
24
//! Write audio frame.
25
virtual
void
write
(
Frame
& frame);
26
};
27
28
}
// namespace audio
29
}
// namespace roc
30
31
#endif
// ROC_AUDIO_NULL_WRITER_H_
roc::audio::Frame
Audio frame.
Definition:
frame.h:25
roc::audio::IFrameWriter
Frame writer interface.
Definition:
iframe_writer.h:22
roc::audio::NullWriter
Null writer.
Definition:
null_writer.h:22
roc::audio::NullWriter::write
virtual void write(Frame &frame)
Write audio frame.
roc::core::NonCopyable
Base class for non-copyable objects.
Definition:
noncopyable.h:23
iframe_writer.h
Frame writer interface.
roc
Root namespace.
noncopyable.h
Non-copyable object.
roc_audio
null_writer.h
Generated by
1.9.1