forked from roc-streaming/roc-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creation of branch and began sndfile_source
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/internal_modules/roc_sndio/target_sndfile/roc_sndio/sndfile_source.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright (c) 2023 Roc Streaming authors | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
#include "roc_sndio/sndfile_source.h" | ||
#include "roc_core/log.h" | ||
#include "roc_core/panic.h" | ||
#include "roc_sndio/backend_map.h" | ||
|
||
namespace roc { | ||
namespace sndio {} | ||
} // namespace roc |
41 changes: 41 additions & 0 deletions
41
src/internal_modules/roc_sndio/target_sndfile/roc_sndio/sndfile_source.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (c) 2023 Roc Streaming authors | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
//! @file roc_sndio/target_sndfile/roc_sndio/sndfile_source.h | ||
//! @brief TODO. | ||
|
||
#ifndef ROC_SNDIO_SNDFILE_SOURCE_H_ | ||
#define ROC_SNDIO_SNDFILE_SOURCE_H_ | ||
|
||
#include <sndfile.hh> | ||
|
||
#include "roc_audio/sample_spec.h" | ||
#include "roc_core/array.h" | ||
#include "roc_core/iarena.h" | ||
#include "roc_core/noncopyable.h" | ||
#include "roc_core/stddefs.h" | ||
#include "roc_core/string_buffer.h" | ||
#include "roc_packet/units.h" | ||
#include "roc_sndio/config.h" | ||
#include "roc_sndio/isource.h" | ||
|
||
namespace roc { | ||
namespace sndio { | ||
|
||
//! Sndfile source. | ||
//! @remarks | ||
//! Reads samples from input file or device. | ||
//! Supports multiple drivers for different file types and audio systems. | ||
class SndfileSource : public ISource, private core::NonCopyable<> { | ||
public: | ||
private: | ||
}; | ||
} // namespace sndio | ||
} // namespace roc | ||
|
||
#endif // ROC_SNDIO_SNDFILE_SOURCE_H_ |