Questions tagged [libsndfile]

libsndfile is a cross platform C library for reading and writing digital sampled sound. It supports main common file formats like WAV, PCM, AIFF, AU, as well as FLAC and Ogg/Vorbis.

Tag usage

When asking questions about usage of libsndfile, please include:

  • Target system and compiler information. This includes the compiler name, version and settings used to compile.

  • libsndfile version and release number.


Website: http://www.mega-nerd.com/libsndfile

164 questions
3
votes
3 answers

Audio file format that can be written without seeking

I want to write audio data to stdout, preferably using libsndfile. When I output WAV to /dev/stdout I manage to write the header, but then I get an error Error : could not open file : /dev/stdout System error : Illegal seek. I assume this is…
Andreas Jansson
  • 3,137
  • 2
  • 30
  • 40
3
votes
2 answers

How can I compile libsndfile under ubuntu 11.04?

How can I compile libsndfile under ubuntu 11.04 ? Should I use g++ or something?
Shawn
  • 10,931
  • 18
  • 81
  • 126
3
votes
1 answer

Python module audiolab returns error when function is called

I need to install the Python module audiolab for a research project, and while I have managed to install it and get the module to import in the Python shell, it returns an error in calling one of the most basic functions in the module, wavread(). …
3
votes
0 answers

Implementing convolution in C++ using fftw 3

UPDATE See my fundamental based question on DSP stackexchange here UPDATE I am still experiencing crackling in the output. These crackles are now less pronounced and are only audible when the volume is turned up UPDATE Following the advice given…
Lancophone
  • 310
  • 2
  • 17
3
votes
2 answers

Compiling libsndfile, and it does not find FLAC

I am trying to cross-compile libsndfile for use on an intel edison, with flac capabilities. I have successfully compiled FLAC, OGG, and VORBIS into my cross toolchain but when I run ./configure it gives me the following output: checking for…
CrustyAuklet
  • 357
  • 3
  • 16
3
votes
1 answer

Reading a .wav file using libsndfile in C

I want to read a .wav file in C similar to what Matlab's wavread command does. I came across this library http://www.mega-nerd.com/libsndfile/ that seems to be the solution. But can someone explain how to install this library so that I may use its…
Anand PA
  • 105
  • 2
  • 8
3
votes
1 answer

Using KissFFT on a wave file

I am trying to use the KissFFT Library with this 11 second 44kHz .wav sample file as a test input. However as I process the file with a window size of 512, I am getting only 1 output value. Which is weird, the 11 sec .wav file at 44kHz should not…
Joseph Azzam
  • 105
  • 1
  • 14
3
votes
1 answer

Resampling PCM file data with soxr and libsndfile crashes

I'm building an app that, in part, needs to resample any input PCM audio file that isn't 44100Hz to 44.1 (or at least make a best effort to do so). To handle the resampling I'm using soxr. soxr has no dependencies and is lightweight, which is ideal…
Farski
  • 1,670
  • 3
  • 15
  • 30
3
votes
3 answers

"error LNK2019: unresolved external symbol" error in Visual Studio 2010

I'm trying to compile and run a C code that is using libsndfile library for sound files processing. I have added the header file using this path: project's Properties (in C/C++ -> General -> Additional Include Directories) Also i have linked the…
user3127389
  • 87
  • 1
  • 1
  • 6
3
votes
1 answer

Difference between frames and items in libsndfile?

I am writing a software which processes audio files. I am using libsndfile library for reading wave file data, and I come across a doubt that wasn't solved by their documentation: what is the difference between functions that read items and…
Mauren
  • 1,955
  • 2
  • 18
  • 28
3
votes
1 answer

How do you read/write audio files using the libsndfile C++ wrapper?

libsndfile is a C library for reading and writing WAV files, and it also includes a C++ wrapper, which I'd like to use. However, although the C API documentation is very thorough, I cannot figure out how to use the C++ wrapper to read audio files…
LeeG
  • 265
  • 1
  • 4
  • 11
3
votes
1 answer

Set bitrate of ogg file generated by libsndfile libraries

I used the code below to convert sound files to ogg vorbis, but i don't found on the documentation of libsndfile how to set the bitrate of the output file, which is always set to 128 kb/s. Is possible to change the bitrate of the output file…
Antonio Dias
  • 2,751
  • 20
  • 40
3
votes
1 answer

Gtk audio player. How to stop sound before the end of the song

I am developing an extremely simple audio player. It uses Gtk and portaudio/libsndfile. I've created a simple test interface with few buttons like Browse, Play etc. My player picks filename correctly, and after pressing Play it starts playing. But…
Cecil
  • 53
  • 5
3
votes
1 answer

Inquiry: Integrating libsndfile with Visual Studio 2010 C++. Error: libsndfile.dll not found

I am teaching myself how to read in wav files into C++ as a part of me learning C++. I have found many resources online that recommended the following library: libsnfile library So I followed some tutorials below in testing the basic functionality…
GeekyOmega
  • 1,235
  • 6
  • 16
  • 34
3
votes
1 answer

How do I cross-compile libsndfile for Arm/Raspberry Pi

I'm trying to get a working cross-compiler running under Linux (Debian squeeze amd64) but I can't seem to link my files with the installed libsndfile, I'm assuming I need to cross-compile the source to target the Raspberry-Pi and link to that…
Dog Ears
  • 9,637
  • 5
  • 37
  • 54
1
2
3
10 11