Comments (7)
Hey!
The Wav format is supported on all platforms. What exactly is the problem you are facing?
As a starting point you could try the code below which will read in an entire wav file into an interleaved vector.
auto stream = audio::ifstream("hello.wav");
auto samples = std::vector<float>(stream.info().num_samples());
stream >> samples;
from ni-media.
#include <boost/range/difference_type.hpp>
#include <boost/range/has_range_iterator.hpp>
#include <boost/range/value_type.hpp>
Sorry,I can‘t find these three headers,could U help me?
from ni-media.
Could I use it in windows with Visual Studio??
from ni-media.
It seems like you are missing the boost libraries. Boost is a required dependency. Cmake should have triggered an error during configure time about the missing library. Are you using cmake?
You can use Visual Studio 2015 and above.
from ni-media.
But U haven't proposed the files !!!
Couldn't find !
Help !
Thx
from ni-media.
Hiya.
You need to install the boost libraries and then include them in your VS solution. Here is a guide for windows: https://www.boost.org/doc/libs/1_68_0/more/getting_started/windows.html
from ni-media.
Hi @ucasiggcas did you get it to work? :) I'd like to close this issue if so.
from ni-media.
Related Issues (14)
- Compilation issues HOT 1
- Compiler warning in positioning.h HOT 5
- Benchmarks HOT 2
- Converting OGG to WAV
- Old gcc does not support c++14! HOT 1
- boost ERROR? HOT 5
- Linux does not support mp4 or m4a? HOT 8
- Flaky ifstream tests with Windows Media Foundation
- Tests are not building on windows with LINK : fatal error LNK1104: cannot open file 'libboost_filesystem-vc142-mt-x64-1_74.lib' HOT 1
- Switch to a path interface instead of using `std::string` for file paths HOT 5
- Unable to sample_seekg to the last sample in an AIFF file
- AAC Encoding? HOT 1
- Supported File Formats HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ni-media.