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 
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_
Audio frame.
Definition: frame.h:25
Frame writer interface.
Definition: iframe_writer.h:22
virtual void write(Frame &frame)
Write audio frame.
Base class for non-copyable objects.
Definition: noncopyable.h:23
Frame writer interface.
Root namespace.
Non-copyable object.