Skip to content

Commit

Permalink
Creation of branch and began sndfile_source
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrick87 committed Nov 15, 2023
1 parent d31c373 commit 277a420
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
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
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_

0 comments on commit 277a420

Please sign in to comment.