EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
Loading...
Searching...
No Matches
echomap::Signal::Source Struct Reference

Indicates an external source of a Signal on the filesystem. More...

#include <Signal.hpp>

Public Member Functions

bool operator< (const Source &other) const

Public Attributes

std::filesystem::path path
 The path (absolute or relative to CWD) of the source wave file.
std::size_t channel
 The channel number of the Signal within the given file.
bool dirty = false
 Does the Signal contain additional samples?
bool is_loaded = false
 Has the Signal loaded all samples from the filesystem?

Detailed Description

Indicates an external source of a Signal on the filesystem.

Definition at line 61 of file Signal.hpp.

Member Function Documentation

◆ operator<()

bool echomap::Signal::Source::operator< ( const Source & other) const
nodiscard

Definition at line 28 of file Signal.cpp.

31{
32 if (channel < other.channel)
33 return true;
34
35 return path < other.path;
36}
std::size_t channel
The channel number of the Signal within the given file.
Definition Signal.hpp:64
std::filesystem::path path
The path (absolute or relative to CWD) of the source wave file.
Definition Signal.hpp:63

Member Data Documentation

◆ channel

std::size_t echomap::Signal::Source::channel

The channel number of the Signal within the given file.

Definition at line 64 of file Signal.hpp.

◆ dirty

bool echomap::Signal::Source::dirty = false

Does the Signal contain additional samples?

Definition at line 65 of file Signal.hpp.

◆ is_loaded

bool echomap::Signal::Source::is_loaded = false

Has the Signal loaded all samples from the filesystem?

Definition at line 66 of file Signal.hpp.

◆ path

std::filesystem::path echomap::Signal::Source::path

The path (absolute or relative to CWD) of the source wave file.

Definition at line 63 of file Signal.hpp.


The documentation for this struct was generated from the following files: