YARP
Yet Another Robot Platform
SoundFileWav.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef YARP_SIG_SOUNDFILE_WAV_H
8#define YARP_SIG_SOUNDFILE_WAV_H
9
10#include <yarp/sig/Sound.h>
11
12namespace yarp::sig::file {
19bool YARP_sig_API read_wav_bytestream(Sound& data, const char* bytestream);
20
27bool YARP_sig_API read_wav_file(Sound& data, const char* filename);
28
35bool YARP_sig_API write_wav_file(const Sound& data, const char* filename);
36} // namespace yarp::sig::file
37
38#endif // YARP_SIG_SOUNDFILE_WAV_H
bool read_wav_file(Sound &data, const char *filename)
Read a sound from a .wav audio file.
bool write_wav_file(const Sound &data, const char *filename)
Write a sound to a .wav file.
bool read_wav_bytestream(Sound &data, const char *bytestream)
Read a sound from a byte array.
#define YARP_sig_API
Definition: api.h:18