Files
conan-build/recipes/libsndfile/all/test_package/test_package.cpp
2024-12-25 17:47:28 +03:00

18 lines
339 B
C++

#include "sndfile.hh"
#if __cplusplus < 201100 && defined(_MSC_VER)
#undef nullptr
#endif
#include <iostream>
int main(int argc, char *argv[]) {
if (argc < 2) {
std::cout << "Usage: example <file.wav>\n";
return 0;
}
SndfileHandle handle(argv[1]);
std::cout << "Sample rate: " << handle.samplerate() << "\n";
return 0;
}