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
2 answers

C++ libsndfile and mac osx

I've seen this question around quite a lot but I'm fairly new to C++ and I've tried following each answer. I am trying to use the libsndfile lib with XCode and mac osx mavericks. However the problem lies with /* The following typedef is system…
Ryanas
  • 1,757
  • 3
  • 19
  • 36
0
votes
2 answers

Using libsamplerate with libsndfile

This code is part of my attempts to better understand audio coding. Here, a file is opened with libsndfile, converted with libsamplerate to a new sample rate, and the result played with libao. When playing various combinations of bits, channels,…
Frotz
  • 535
  • 4
  • 21
0
votes
1 answer

Extract raw audio data from WAV files using libsndfile in C++

I am working on an application that will provide audio input to some device. The device expects the audio input to be provided in the form of raw audio data stream (16 bit, 48kHz). So, irrespective of the format of audio data in the wave file…
user2837808
  • 1
  • 1
  • 2
0
votes
1 answer

libsndfile and Photoshop plugin development issue

i'm trying to compile a 64 bits version of my 32 bits plugin which works ok on CS2 i came to a point where when i add in my code any libsndfile related function (sf_open, sfinfo, sf_read_double) the plugin don't show anymore on the plugin list. If i…
IonOne
  • 385
  • 4
  • 15
0
votes
0 answers

Remove libsndfile module (Python, Mac OS X)

I want to uninstall libsndfile because I believe I installed the x86_64 version rather than i386, as per the answer posted here. I didn't install libsndfile using MacPorts, so I'm not sure which way to do it. How can I uninstall/remove/delete…
Leonardo Lopez
  • 1,113
  • 6
  • 20
  • 39
0
votes
2 answers

libsndfile sf_readf_short max number of frames

I need to read-in as fast as possible wave files. What I am currently doing is the following: SFINFO sfinfo; SNDFILE *wavFilefd = sf_open ("mySong.wav", SFM_READ, &sfinfo); int readBlockSize = 1024*1024; // 1MB if( sfinfo.frames * 2 < readBlockSize…
ezdazuzena
  • 6,120
  • 6
  • 41
  • 71
0
votes
1 answer

How do you print silence in an audio file with libsndfile?

I'm doing some simple simple programs with libsndfile and currently and trying to find a way to print silence in an audio file- other than muting the out of another file. Ostensibly, I'm making a drum machine. At the given moment, I am only able to…
0
votes
1 answer

C Pitchshifter using libsamplerate

first post, I'm trying to make a simple pitchshifter using libsamplerate and libsndfile. I have achieved this in the most basic form by making a simple samplerate covnerter and then hacking it, I change pitch by changing the ratio float value. The…
0
votes
1 answer

How do I access functions from libsndfile-1.dll in MSVC?

  I'm having trouble getting libsndfile-1.dll to work in my MSVC project. I can load the library and retrieve the version string from the dll by calling sf_command() from my code. However, I can't seem to get sf__open() to return a SNDFILE…
josh
0
votes
1 answer

libsndfile weird behaviour using VS2010

I'm making a program that records from microphone and then encodes it to OGG file using libsndfile. About a month ago I made a console version of this program just to be sure that recording and encoding function is good. And now when I started doing…
hub2
  • 11
  • 1
  • 4
0
votes
1 answer

MacPorts 2.1.2 git and libsndfile installation

I try to install git and libsndfile with port, but I get this messages. MacPorts 2.1.2 Error: Port git not found Error: Port libsndfile not found What is the problem?
flatronka
  • 1,061
  • 25
  • 51
0
votes
1 answer

MSVS2010 C++ Console Code Ported to MSVS2010 C++ GUI is Failing. Why?

I just completed a proof of concept, or so I thought, of feeding Microsoft Visual Studio 2010 some C++ code as a console program. The C++ code that compiled is given below: #include "stdafx.h" #include #include #include…
GeekyOmega
  • 1,235
  • 6
  • 16
  • 34
0
votes
1 answer

Are there javax.sound interfaces for libsox or libsndfile?

I'm looking to open/manipulate CAF (Core Audio Format) files from a Java application that already uses javax.sound to do its work. Does anybody know of a javax.sound wrapper for libsox or libsndfile, each of which support CAF natively?
Paul
  • 53
  • 4
-2
votes
1 answer

Writing multichannel audio for MATLAB with libsndfile

I am trying to use libsndfile to write a multichannel wav that can be read by MATLAB 2010+. the following code writes a 4 channel interleaved wav. all samples on channel 1 should be 0.1, on channel 2 they are 0.2, on channel 3 ... etc. Each…
AlexS
  • 510
  • 2
  • 7
  • 23
1 2 3
10
11