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
1 answer

libsndfile - sf_open(): Undefined references in time.h

I am using libsndfile and portaudio to play audio from a .wav file and I am getting some weird undefined reference (in time.h...?) errors upon use of sf_open(const char*, int, SF_INFO*) Before showing the errors, here is some basic info: I'm using…
Sus Among Us
  • 103
  • 2
  • 11
0
votes
0 answers

Building sox from source on Windows

I'm trying to build sox from source using Visual Studio 2013 on Windows 8. I can build the other dependencies but when I try to compile libsndfile I get the following errors: C:\Program Files (x86)\Microsoft Visual Studio…
Colin Pickard
  • 45,724
  • 13
  • 98
  • 148
0
votes
1 answer

C error: "Undefined reference to 'sf_open'" from libsndfile

I am using Code::Blocks to test some codes, and I just can't biuld this code: #include #include #include int main() { SNDFILE *sf; sf = sf_open("file.wav",SFM_READ,&info); //error happens in this line ... And the…
0
votes
3 answers

libsndfile : Undefined references

I've added the bin folder to system PATH as well "libsndfile-1.dll" to the main directory of the program. I've linked the include directories and added the "libsndfile-1.lib" library from codeblocks's library linker. I've made and linked additional…
Imobilis
  • 1,475
  • 8
  • 29
0
votes
1 answer

Libsndfile - How do deal with extra chunks (metadata)

I am using libsndfile (with the c# wrapper) to create wav/aiff files based on existing wav files by for example converting a stereo file to mono file or vice versa. My process is: Read existing file Open new file for write while filling…
Mozzak
  • 201
  • 3
  • 16
0
votes
2 answers

MIDI Note Message in C++

I'm trying to make a piece of software using C++ that plays a .wav audio sample when a certain MIDI key is pressed. The best way I thought about doing this is using an if statement (if there's an easier way I would much appreciate it, but I'm quite…
0
votes
1 answer

using sndfile library when compiling 32bit linux application on Fedora 20 x86_64

I'm currently using Fedora 20 x86_64. I've built libsndfile with these commands: sudo ./configure BASE_FLAGS=-32 sudo make sudo make install This all goes well and I can find the compiled library in /usr/local/lib. I want to use this in an…
Dries
  • 995
  • 2
  • 16
  • 45
0
votes
1 answer

sndfile.h not found on OS X

I'm trying to install libsndfile on OSX, and I used homebrew (brew install libsndfile). But when I try to compile some example code with #include using gcc it says sndfile.h cannot be found, but when I check in /usr/local/include it's…
Zeeshan Pirzada
  • 130
  • 1
  • 1
  • 7
0
votes
0 answers

how to compile C++ - libsndfile on iOS

ld: warning: ignoring file /Users/vibhavarirajadnya/MyDev/iOS-Projects/Music/POC/ReadWaveFile/ReadWaveFile/libsndfile.a, file was built for archive which is not the architecture being linked (i386):…
0
votes
1 answer

libsndfile truncates path at 512 characters when using sf_open

The title says it all. When writing to a file with a long path, the path is truncated. string filename="/pathwithmorethan512characters/song.wav"; sf_open(filename.c_str(), SFM_WRITE, &sfinfo); Any ideas for a workaround? I'm using linux with…
Matthias
  • 1
  • 1
0
votes
1 answer

Piping raw PCM stream into libsndfile

I'm working on a application, and I'd like to pipe a raw PCM stream from one application into mine. I'm thinking the stream needs to be opened with libsndfile using the sf_open_virtual function, but I can't quite figure out the exact process. Any…
0
votes
0 answers

Using SoX to swap endianness of CAF files

We're trying to use SoX to convert our WAVs to CAFs for an iPhone project. At the moment, as the possesser of the only Mac in the office, it's me who has to regularly run afconvert to do this, but I'd prefer the guys actually making the audio could…
subi211
  • 105
  • 2
  • 9
0
votes
3 answers

Modify permissions of a directory in linux

How can I modify the write/read/execution permissions of an already-made directory in Linux shell? I need to install libsnd library but the installation gives an error that it failed to create a directory during the process.
user3127389
  • 87
  • 1
  • 1
  • 6
0
votes
1 answer

Distributable application using portaudio and libsndfile

I have written a small C program using portaudio and libsndfile which works only on my PC. In other systems it asks for libportaudio.dll and libsndfile.dll.I am linking with -lportaudio and -lsndfile. I want to make this work everywhere(Windows)…
Chaithra
  • 1,130
  • 3
  • 14
  • 22
0
votes
1 answer

add libsndfile to a Qt project

I want to use libsndfile library in a Qt project, then I need to link it but I always get an error : main.cpp:129: error : undefined reference to `sf_open' main.cpp:137: error : undefined reference to `sf_write_short' I tried to add these…
e492109
  • 57
  • 1
  • 3
1 2 3
10
11