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
0
votes
0 answers

I can't install libsndfile on visual studio

so I'm trying to write a program in Visual Studio (in C++) with use of libsndfile library, but I can't make it work. I have installed this library with vcpkg and when i try to run program from this site…
Ikaruga
  • 61
  • 9
0
votes
1 answer

How can I get PySoundfile to run on Google Cloud Platform flexible environment?

I have a simple application that I'd like to deploy to a GAE standard or flexible environment, and it requires the generation of simple audio files. I have code that runs well locally (on the dev server) using PySoundfile, but I run into errors with…
0
votes
0 answers

JACK audio sound altered on playback

Here is an audio playback program using JACK that works but not properly. The glitch comes from audio data alteration while reading sound data from the file with sndfile, but i couldn't find why...The sound comes out but is ugly. If you're familiar…
Iliace
  • 1
  • 3
0
votes
1 answer

cannot instal soundfile in datalab

i want install sndfile to successfully install another package (musdb), but when I tried following instructions on https://cloud.google.com/datalab/docs/how-to/adding-libraries !pip install sndfile It gives me the following error: {Collecting…
lll
  • 1,049
  • 2
  • 13
  • 39
0
votes
0 answers

Would there be an advantage to copying data from managed stream to an intptr in blocks of 4096?

In my libsndfile wrapper currently im using this. To read my stream (Must be a stream im loading from resource) But is this the best way i can fill the pointer with the requested data? public static void ReadStream(Stream input,IntPtr output,int…
0
votes
0 answers

Why does my program not open WAV file?

I have a C++ code. I'm trying to open about 20 WAV files using this code. But when it gets on the 10th file, it stops opening and reading files? What is the problem? I have 20 WAV files stored on my computer at a certain path. It works fine for file…
0
votes
0 answers

cmake compile undefined reference

Let me first start with my CMakeLists.txt source: cmake_minimum_required(VERSION 2.8.7) project(audiowaveform) #set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static") if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release") …
medo zeus
  • 39
  • 1
  • 6
0
votes
1 answer

Compiling libsndfile for STM32F4xx Discovery Board

I'm trying to cross-compile libsndfile for the STM32F board. I found this SO question, but I'm having trouble in the configure step. I have installed the cross-compiling tools with apt install gcc-arm-none-eabi. I ran ./autogen.sh then export…
arunkumar
  • 32,803
  • 4
  • 32
  • 47
0
votes
0 answers

Overwriting amplitude values of a .wav file using libsndfile

I am trying to implement a program with pitch corrects inputted audio signals. I have taken a .wav file, used autocorrelation to find the period of the signal every 0.04s. I now have an array of amplitude points which take the period length of the…
Tom_Anks
  • 47
  • 9
0
votes
0 answers

build .cpp in windows using cmake

I was trying to build my .cpp file in Windows platform (windows 10) using CMake. My .cpp file makes use of two external libraries: armadillo libsnd file. I have written a corresponding CMakeLists.txt to compile and obtain the binary. I was…
0
votes
1 answer

Port Audio and Libsndfile no data?

Im probably doing something stupid but I am not getting any form of data from libsndfile when I'm using it in a sound system that I'm developing. sf_read_floatf returns greater than zero but looking at the buffer itself it's just zeroed out data. …
alatnet
  • 1
  • 2
0
votes
1 answer

Why is my array returning the wrong values in C?

I'm trying to use the libsndfile library to read/write information between audio files. I've managed to read the original file, write a copy of it with "watermark" values. All I'm trying to do now is print any index where the value is not…
0
votes
0 answers

Incorrectly generated wav file due to improper usage of sndfile library

Even though the text file to which I saved all the samples contains (possibly) proper samples, the sound file generated using the same set of data contains only the noise. The code responsible for writing the wav file: void…
Kokos34
  • 67
  • 1
  • 11
0
votes
1 answer

Error : major format is 0 (libsndfile, Qt)

I keep getting error mentioned in topic (no additional messages) when I'm trying to open the file in Qt using libsndfile library in following code: SNDFILE * outfile; SF_INFO sfinfo; //preparing output file sfinfo.format =…
Kokos34
  • 67
  • 1
  • 11
0
votes
0 answers

How can one use an array of Shorts containing IFFT Data to write a 16bit WAV file using Libsndfile with C++?

I am new to Audio Programming and have been having quite some trouble using Libsndfile to write a 16bit wav file. So the part where I am showing the code is from after the IFFT data has been retrieved. At the moment I'm managing to create "test.wav"…