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 
12 namespace yarp {
13  namespace sig{
14  namespace file {
21  bool YARP_sig_API read_wav_bytestream(Sound& data, const char* bytestream);
22 
29  bool YARP_sig_API read_wav_file(Sound& data, const char* filename);
30 
37  bool YARP_sig_API write_wav_file(const Sound& data, const char* filename);
38  }
39  }
40 }
41 
42 #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.
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_sig_API
Definition: api.h:18