Skip to content

Commit

Permalink
fixed rebase issue with core::Array
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrick87 committed Feb 26, 2024
1 parent 92ac7a4 commit 5aada82
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/internal_modules/roc_sndio/ibackend.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class IBackend {
const char* path,
const Config& config,
core::IArena& arena) = 0;

//! Returns name of backend.
virtual const char* name() const = 0;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SndfileBackend : public IBackend, core::NonCopyable<> {
const char* path,
const Config& config,
core::IArena& arena);

//! Returns name of backend.
virtual const char* name() const;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@

#ifndef ROC_SNDIO_SNDFILE_EXTENSION_TABLE_H_
#define ROC_SNDIO_SNDFILE_EXTENSION_TABLE_H_

#pragma once

#ifndef ROC_SNDIO_SNDFILE_FILEMAP_H_
#define ROC_SNDIO_SNDFILE_FILEMAP_H_
#ifndef ROC_SNDIO_SNDFILE_EXTENSION_TABLE_H_
#define ROC_SNDIO_SNDFILE_EXTENSION_TABLE_H_

#include "sndfile.h"

Expand All @@ -33,5 +30,6 @@ static FileMap file_type_map[5] = { { SF_FORMAT_MAT4, "mat4", NULL },
{ SF_FORMAT_WAV, "wav", "wav" },
{ SF_FORMAT_NIST, "nist", NULL },
{ SF_FORMAT_WAVEX, "wavex", NULL } };
#endif // ROC_SNDIO_SNDFILE_FILEMAP_H_

#endif // ROC_SNDIO_SNDFILE_EXTENSION_TABLE_H_
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class SoxBackend : public IBackend, core::NonCopyable<> {
const char* path,
const Config& config,
core::IArena& arena);

//! Returns name of backend.
virtual const char* name() const;

private:
Expand Down
1 change: 1 addition & 0 deletions src/internal_modules/roc_sndio/wav_backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class WavBackend : public IBackend, core::NonCopyable<> {
const Config& config,
core::IArena& arena);

//! Returns name of backend.
virtual const char* name() const;
};

Expand Down
2 changes: 1 addition & 1 deletion src/tests/roc_sndio/test_backend_sink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ TEST_GROUP(backend_sink) {

bool supports_wav(IBackend & backend) {
bool supports = false;
core::Array<DriverInfo, MaxDrivers> driver_list;
core::Array<DriverInfo, MaxDrivers> driver_list(arena);
backend.discover_drivers(driver_list);
for (size_t n = 0; n < driver_list.size(); n++) {
if (strcmp(driver_list[n].name, "wav") == 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/tests/roc_sndio/test_backend_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ core::BufferFactory<audio::sample_t> buffer_factory(arena, MaxBufSize);

bool supports_wav(IBackend& backend) {
bool supports = false;
core::Array<DriverInfo, MaxDrivers> driver_list;
core::Array<DriverInfo, MaxDrivers> driver_list(arena);
backend.discover_drivers(driver_list);
for (size_t n = 0; n < driver_list.size(); n++) {
if (strcmp(driver_list[n].name, "wav") == 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/tests/roc_sndio/test_pump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ core::BufferFactory<audio::sample_t> buffer_factory(arena, BufSize);

bool supports_wav(IBackend& backend) {
bool supports = false;
core::Array<DriverInfo, MaxDrivers> driver_list;
core::Array<DriverInfo, MaxDrivers> driver_list(arena);
backend.discover_drivers(driver_list);
for (size_t n = 0; n < driver_list.size(); n++) {
if (strcmp(driver_list[n].name, "wav") == 0) {
Expand Down

0 comments on commit 5aada82

Please sign in to comment.