FP Perception 0.1.2
Loading...
Searching...
No Matches
Namespaces | Functions
wav.hpp File Reference
#include <fstream>
#include <vector>
#include <cstdint>
#include <string>
#include <cstring>
#include <stdexcept>
#include <fp_perception_base/exceptions.hpp>
#include <fp_perception_base/audio/structs.hpp>
Include dependency graph for wav.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fp_perception
 

Functions

void fp_perception::writeWavStream (std::ostream &out, const audio_data &data)
 Write audio data to a WAV file using an output stream.
 
void fp_perception::writeWavFile (const std::string &filename, const audio_data &data)
 Write audio data to a WAV file.
 
audio_data fp_perception::readWavFile (const std::string &filepath)
 Read audio data from a WAV file.
 
std::vector< char > fp_perception::encodeWavToBytes (const fp_perception::audio_data &data)
 Encode audio data to a WAV file and return as a byte vector.