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
101
votes
18 answers

How to fix an UnsatisfiedLinkError (Can't find dependent libraries) in a JNI project

I'm working on a Java project that uses the JNI. The JNI calls a custom library that I've written myself, let's say mylib.dll, and that depends on a 3rd party library, libsndfile-1.dll. When I run my program it crashes with…
dB'
  • 7,838
  • 15
  • 58
  • 101
10
votes
1 answer

WAV-file analysis C (libsndfile, fftw3)

I'm trying to develop a simple C application that can give a value from 0-100 at a certain frequency range at a given timestamp in a WAV-file. Example: I have frequency range of 44.1kHz (typical MP3 file) and I want to split that range into n amount…
8
votes
1 answer

Trying to install libsndfile on Ubuntu 16

I've tried running sudo apt-get install libsndfile > E: Unable to locate package libsndfile So then I try sudo apt-get install libsndfile1 It installs, but where, how? find /usr/ -name libsndfile* > /usr/lib/x86_64-linux-gnu/libsndfile.so.1 >…
Alex V
  • 18,176
  • 5
  • 36
  • 35
7
votes
2 answers

Can the Libsndfile library be used on the iPhone iOS?

Can the Libsndfile C library be used on the iPhone operating system? If so, do I need to just 'include' it, or is it more complicated then that. Thanks!
Eric Brotto
  • 53,471
  • 32
  • 129
  • 174
7
votes
1 answer

Package libsndfile-dev has no installation candidate

I am trying to install "libsndfile-dev". I do the following: sudo apt-get install libsndfile-dev As the result I get the following: Reading package lists... Done Building dependency tree Reading state information... Done Package…
Roman
  • 124,451
  • 167
  • 349
  • 456
6
votes
3 answers

‘seewave' install error “'sndfile.h' file not found” (for R 3.2.0 under OSX Yosemite)

When updating to R 3.2.0 I had to reinstall seewave. I managed to install the required packages fftw, tuneR, rgl, and rpanel. But, when trying to compile seewave I got the message: stft.c:3:11: fatal error: 'sndfile.h' file not found
Pisca46
  • 914
  • 8
  • 11
6
votes
3 answers

Python audiolab install, unable to install (or find) libsndfile on Mac OSX

Trying to install scikits.audiolab-0.11.0 on Mac, bit it requires libsndfile: http://www.mega-nerd.com/libsndfile/. I did install libsndfile supposedly, using libsndfile_python-1.0.0-py2.7-macosx10.5.mpkg, but the audiolab setup gives an error:…
OWolf
  • 5,012
  • 15
  • 58
  • 93
5
votes
3 answers

Simple Verilog VPI module to open audio files

I would like to write a VPI/PLI interface which will open audio files (i.e. wav, aiff, etc) and present the data to Verilog simulator. I am using Icarus at the moment and wish to use libsndfile to handle input file formats and data type…
errordeveloper
  • 6,716
  • 6
  • 41
  • 54
5
votes
3 answers

What should I use in Android when porting C++ code written with libsndfile?

I'm porting a small (<10 classes) C++ project to Java. The project manipulates sound files, and in C++ does this using libsndfile. The code includes stuff like: const int channels = audioFileInfo.channels; ... sf_readf_double( audioFile,…
fredley
  • 32,953
  • 42
  • 145
  • 236
5
votes
5 answers

Fatal Error Installing libsndfile on OS X Mavericks

I'm currently trying to install libsndfile on my mac running os x 10.9.1. However, when after running the command 'make' it runs for a while and then displays the following message: sndfile-play.c:61:11: fatal error: 'Carbon.h' file not found. I…
user2951764
  • 115
  • 1
  • 5
4
votes
1 answer

In docker : OSError: ctypes.util.find_library() did not manage to locate a library called 'sndfile'

I am using Docker(Linux Container) on Windows 10 Pro machine.I created a docker container to run my flask application and have mentioned the required libraries in the requirements.txt file. When i run docker container i got the below…
sn1234
  • 103
  • 1
  • 8
4
votes
1 answer

Get the audio duration using libsndfile

I created an application using libsndfile and wasapi, it allows playing an audio file slowly and manually with the cursor using QSlider. I see that libsndfile uses frames, I want to know how to get the duration of this audio file but I can not find…
IT World
  • 165
  • 1
  • 10
4
votes
1 answer

libsndfile linking error with libvorbis and libogg when compiling on mac 10.6 snow leopard

Hi I'm trying to compile libsndfile 1.0.25 on Mac OSX 10.6 I've installed libvorbis-1.3.4 and libogg-1.3.1 with brew 1 - I tried installing libsndfile with brew 2 - I tried installing libsndfile manually with ./configure and make The ./configure…
ubob
  • 41
  • 1
4
votes
1 answer

Processing large files with libsndfile

Currently I've written a program (in Visual Studio C++) based on the available example code of "libsndfile" in which I've just added a subtraction-function to subtract one (channel of a) WAV-file with another. The program worked perfectly for files…
ItWillDo
  • 468
  • 4
  • 9
4
votes
1 answer

Controlling audio volume in real time

I'm currently using libsndfile in combination with PortAudio V19 to read audio data from a file and play it back. (Please note I am doing this on a Raspberry Pi running Raspbian.) The problem I'm encountering is that I need to dynamically control…
Chris Hayes
  • 11,471
  • 4
  • 32
  • 47
1
2 3
10 11