0
votes
1answer
20 views

How to access to L and R channel samples of stereo audio file separately?

Suppose I have 8-bits (mono and stereo) .wav files. When processing of this file I have to declare pointer to array of samples. There is difference between conception of mono and stereo files: there ...
1
vote
3answers
42 views

App crashes though I can't understand the reason [closed]

The input file is in.wav. I have to read chunks (succeeded) and to read samples to normalize the audio file... The problem is that it crashes while trying to fing the max and min values of .wav ...
0
votes
2answers
58 views

How to find the size of data (samples) of the .wav file?

I have to normalize .wav audio file. Succeeded to get metadata (the first 44 bytes) from the file (ChunkID, ChunkSize, Format, fmt and so on.) so I can find out how many channels are there ...
0
votes
1answer
61 views

Am I translating this C code to AS3 properly?

So I found some C code to decompress certain PCM samples, and I want to do the same in AS3. I have tried to do so, but it doesn't seem to be working. I know little to no C, although I'm quite fluent ...
0
votes
0answers
27 views

Where to get sc110wav.h? [closed]

I needed to know from where I can get sc110wav.h file for audio processing of .wav files in C. I would highly appreciate it, Thanks in advance :)
0
votes
2answers
312 views

Code to read Wav header file producing strange results? C

I need to read the header variables from a wave file and display what they are. I am using the following code, but my output has numbers far too large. I've searched for solutions for hours. Help ...
-1
votes
2answers
121 views

How to interpret 32 bit float wav data [closed]

How to interpret 32 bit float wav data? I am reading the wav data as I32 and then dividing it by 2^31, but not getting the right result.
0
votes
2answers
86 views

Why 0x4e0 instead of 0x0 in wav file head?

I have a wav file named "file.wav", and I want to read some specification of the file with a C program. I found the structure of wav file here. According to this document, in a normal wav file, the ...
1
vote
1answer
106 views

Merging MIDI and Wav files

I want to be able to merge multiple midi files and wav files and produce single wav or mp3 file in Python or C. Is there a library that does this? Do I have to first convert MIDI to wav and then merge ...
2
votes
2answers
209 views

Coverting PCM 16bit LE to WAV

I'm trying to write a program in C that converts a captured Raw 16kHz PCM 16-bit file to a 16-bit WAV. I've read some posts and people recommended using libsox. Installed it and now i'm really ...
0
votes
2answers
343 views

Lame wav to array and back to wav with c/c++ [closed]

Can I convert a wav file to a simple c double or int array and convert back to a new wav file? I want to use some c filter in the wav file. I red that with lame it is possible. But I don't know how. ...
3
votes
6answers
436 views

Library for reading audio files

I want to process audio online/live where I constantly read audio samples from an audio file, process these (e.g. apply some effect), and forward the processed samples to an audio output device like a ...
0
votes
0answers
356 views

Save binary data as WAV file failed

I want to save a binary data block as a WAV file to disk. Look at the first program below, refer to http://goo.gl/hQdTi. This program can play sound, and I want to save the sound to disk as a WAV ...
0
votes
2answers
396 views

How can I extract the vocals (remove instruments) from a WAV file? [closed]

I want to extract the vocals from a .wav file in c/c++. (remove instruments) Q1. Can I extract vocals by using a BPF(Band Pass Filter)? Q2. Can I extract vocals by comparing ...
0
votes
2answers
203 views

how to save audio data in memory as a wav file?

When an application calls waveOutWrite(HWAVEOUT hwo, LPWAVEHDR pwh, UINT cbwh) on windows, I save a copy of the audio data (pointed to by pwh->lpData) sent to the Audio Card in memory. Now I want to ...
1
vote
1answer
254 views

Convert wav to ogg or mp3 on the fly in C

I've written a FUSE fs to access an audio cdrom. It's part of fuse-workspace, which offers access to all kinds of resources like SMB shares, FTP server (work in progress), and audio cd's. Much more ...
2
votes
4answers
634 views

Simple C audio library

I'm looking for a simple-ish library for outputting audio. I'd like it to meet these criteria: Licensed under LPGL/zlib/MIT or something similar – i'm going to use it in an indie commercial ...
1
vote
1answer
519 views

read wav file, calculation fo duration / data_size always wrong

i am trying to read a wav file generated by ffmpeg with ffmpeg -i av FFmpeg generates a wav file with a header size of 18 but without any extension data. This are my data structures: struct ...
1
vote
2answers
218 views

PCMU to WAV conversion

I have an IP camera with microphone. I am capturing the sound using open rtsp library but it is saved in PCMU format. Is anybody aware of libraries (C or JAVA) to convert it to WAV? I couldn't find ...
2
votes
1answer
565 views

WAV File Synthesis From Scratch - C

Recently I saw a video lecture in my CS 101 class that inspired me to start playing with the WAV File Format in C. My project today has been creating sounds using a simple mathematical sine function. ...
3
votes
1answer
2k views

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 ...
0
votes
4answers
408 views

cutting a wav file into segments

I want to write a simple program that takes a moderately sized wav file (60 seconds or so) and cuts it into 1 second length segments of the same format (1.wav,2.wav,... etc) ... Is there a simple C++ ...
0
votes
1answer
165 views

Sound string declaration hangs Arduino compiler

I have a string of characters from an 8 but the WAV file that I'm trying to import into my Arduino project. I declare it like this const unsigned char sounddata_data[] PROGMEM = "€€[fill these ...
1
vote
2answers
2k views

How to extract data from a WAV file for use in an FFT

I'm looking for a way to extract data from a WAV file that will be useful for an FFT algorithm I'm trying to implement. So far what I have are a bunch of hex values for left and right audio channels, ...
1
vote
2answers
407 views

C: editing binary file

Here is the problem: I have to change header of WAVE file, to be exact I have to change ChunkSize and SubChunk2Size. The problem is that those values use 4bytes but it seemt that using fwrite i ...
2
votes
3answers
130 views

Why is there a click after I compress the wav?

I'm using freemp3droid to convert wav files into mp3s. There is a click at the beginning of the file. When I take a look at the file in audacity, the initial 100bytes (beyond the header) have the same ...
1
vote
1answer
425 views

AVAudioPlayer refuses to play modified wav file

The first time i call this method file1 will be nil and file2 will be returned. When this hapens the file will play normally (so the calling of this method should be fine). But when i call it for the ...
0
votes
1answer
207 views

How might I convert a .caf file to .wav using C or C++?

How might I convert a .caf file to .wav using C or C++?
0
votes
1answer
2k views

How to extract frequency out of WAV sample data?

I'm developing an application in c to read simple PCM WAV files. My question is, how should I interpret the samples from the data chunk, so that I can extract the sample's frequency? Given a WAV ...
1
vote
1answer
138 views

Reading wave files for mono conversion (Minix 3)

I'm about to start working on a project for Minix 3 (in C). My idea is to create some kind of a music player. I want to be able to read files (WAV) and then convert them to a stream of frequencies ...

1 2
15 30 50 per page