20#if defined (YARP_HAS_SOXR)
35#ifndef MULTICHANS_TESTED
47 if (
static_cast<unsigned>(snd.
getFrequency()) == frequency)
53#if !defined (YARP_HAS_SOXR)
66#ifdef MULTICHANS_TESTED
75 for (
size_t t = 0; t <
ismp; t++)
104 for (
size_t t = 0; t <
osmp; t++)
A mini-server for performing network communication in the background.
Class for storing sounds See Audio in YARP for additional documentation on YARP audio.
void setSafe(audio_sample value, size_t sample, size_t channel=0)
void setFrequency(int freq)
Set the frequency of the sound (i.e.
size_t getChannels() const
Get the number of channels of the sound.
void resize(size_t samples, size_t channels=1)
Set the sound size.
int getFrequency() const
Get the frequency of the sound (i.e.
size_t getSamples() const
Get the number of samples contained in the sound.
audio_sample getSafe(size_t sample, size_t channel=0) const
#define yCError(component,...)
#define yCWarning(component,...)
#define YARP_LOG_COMPONENT(name,...)
An interface to the operating system, including Port based communication.
bool resample(yarp::sig::Sound &snd, size_t frequency)
Resample a sound.