#pragma once /* VoxCommon.hpp : Defines common data structures and constants to be used with TensorVox */ #include #include #include "AudioFile.h" // #include "ext/CppFlow/include/Tensor.h" // #include #define IF_RETURN(cond,ret) if (cond){return ret;} #define VX_IF_EXCEPT(cond,ex) if (cond){throw std::invalid_argument(ex);} template struct TFTensor { std::vector Data; std::vector Shape; size_t TotalSize; }; namespace VoxUtil { void ExportWAV(const std::string& Filename, const std::vector& Data, unsigned SampleRate); }