PDA

View Full Version : load a wav file ?


DukeRoodee
06-01-2010, 01:38 AM
Hi eveybody,

sorry if this has already been discussed ...or if my ignorance just makes me blind and i donīt see the obvious ... ;-)

Does the IPlug/WDL framework provide a class or a function to load wav (24bit in my case) files into memory ? Iīve seen a wavewrite.h but none for reading.
Currently i am using the libsndfile library, but this is not cross-platform and it causes linker problems when not in debug mode... i just donīt want to waste more time with this, so i thought there might be something already implemented in the framework ... ?

Thanks,
Rudi

Mich
06-01-2010, 01:55 AM
Just from a quick look at WDL it indeed doesn't seem to provide WAVE reading capabilities.

And just to clarify libsndfile _is_ _far_ _more_ cross-platform than WDL. Just look at http://www.mega-nerd.com/libsndfile/

DukeRoodee
06-01-2010, 02:23 AM
Just from a quick look at WDL it indeed doesn't seem to provide WAVE reading capabilities.

And just to clarify libsndfile _is_ _far_ _more_ cross-platform than WDL. Just look at http://www.mega-nerd.com/libsndfile/

>>And just to clarify libsndfile _is_ _far_ _more_ cross-platform than WDL. <<
Yes, youīre right. I just loaded the win version of the lib. I already wasted a lot of time trying to compile the libsndfile sources into a lib, without success. Now I use just the precompiled lib and have linker problems in release mode. Supposed that i get this running, i am afraid to have the same problems again and again when i try to compile on a different platform (there will be enough problems anyway). Sure, I could dig into this, search one million forums for help (i aldready did) but finally i want to use my restricted time to develop a vsti.

For the moment i would be happy to find a simple win-only c++ class capable of reading 24 bit wavs into memory... somebody an idea ?

Thanks
Rudi

MaxBro
06-02-2010, 05:13 AM
Here is a win and linux open source sampler:

http://www.discodsp.com/highlife/

It supports wav files up to 32 bits, maybe it will help you to find the solution.

DukeRoodee
06-03-2010, 07:26 AM
Hi :-)


Well, to be honest, i wrote a wave loader class myself, yesterday ;-)
But nevertheless... thanks !

best,
Rudi