7 #ifndef YARP_SIG_SOUNDFILE_H
8 #define YARP_SIG_SOUNDFILE_H
50 bool open(
const char *filename);
52 size_t readBlock(
Sound& dest,
size_t block_size);
53 bool rewind(
size_t sample_offset=0);
Class for storing sounds See Audio in YARP for additional documentation on YARP audio.
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
bool read_bytestream(Sound &data, const char *filename, size_t streamsize, std::string format)
Read a sound from a byte array.
The main, catch-all namespace for YARP.