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 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/iwriter.h"
16 #include "roc_core/noncopyable.h"
17 
18 namespace roc {
19 namespace audio {
20 
21 //! Null writer.
22 class NullWriter : public IWriter, 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 writer interface.
Definition: iwriter.h:21
Root namespace.
Audio frame.
Definition: frame.h:22
Audio writer interface.
virtual void write(Frame &frame)
Write audio frame.
Base class for non-copyable objects.
Definition: noncopyable.h:23
Non-copyable object.