sound

Implementing an OpenFileDialog with sound file preview.

I would like to implement an open file dialog or file browser that additionally offers a "Preview" button to play the currently selected sound file (wave format in particular, other formats are not necessary for this application). I could create my own form with various controls such as a treeview and listbox to show the folders and fi...

How do wave files store multiple channels?

I've created two wave files using Audacity. Both have 44100hz sample rate, 32-bit float samples, were saved as WAV (Microsoft) 16-bit signed and contain 1s of silence (according to Audacity). The difference is that one file contains one channel, while the other have two (stereo). When reading the one channel file I got frames like this: ...

SoundPool.load() and FileDescriptor from file

I tried using the load function of the SoundPool that takes a FileDescriptor, because I wanted to be able to set the offset and length. The File is not stored in the Ressources but a file on the storage card. Even though neither the load nor the play function of the SoundPool throw any Exception or print anything to the console, the soun...

SoundChannel object plays small portion after being stopped and played again

SoundChannel object is stopped and played again. When played again it plays small portion from the previous position and suddenly jumps back to the beginning. It doesn't play the whole sound before looping. This happens only once, then it loops normally. It happens again if I stop and play. public function play():void { channel = cli...

High level audio crossfading library for python

I am looking for a high level audio library that supports crossfading for python (and that works in linux). In fact crossfading a song and saving it is about the only thing I need. I tried pyechonest but I find it really slow. Working with multiple songs at the same time is hard on memory too (I tried to crossfade about 10 songs in one...

How to make a simple voice recorder in pcm format?

i created a simple voice recording using wav format. my problem is i wanted it to save as PCM format using Tbass components form http://www.un4seen.com. My compiler is delphi. or convertion from mp3/wav to pcm. ...

Java Sound Clip Looping Frame Position

Hi, I have a little problem with a loopting clip: If you have a soundfile e.g. 20000 samples long, the frame position will not reset after looping, so I get values that are "out of bounds" of the original soundfile. As I want to draw a position marker on my waveform, I'm a bit confused how to achive. At this time I just get myClip.getLo...

Simple way to play a single frequency in java?

I just want to play a very simple, straight forward note by giving my computer a certain frequency as an integer, and from there I can figure out how to make it play the note longer or shorter. It does not necessarily have to come out of the actual sound card - if it's generated and output by the internal speaker that's okay. I looked a...

How to generate sound in IPhone

I want to create App which can generate sound and change pitch. My problem is I don't know what libray can make what i want? Anyone can help me? Thank you. ...

Check if song is buffering in AS3

I have the following piece of code: var song:Sound; var sndChannel:SoundChannel; var context:SoundLoaderContext = new SoundLoaderContext(2000); function songLoad():void { song.load(new URLRequest(songs[selected]),context); sndChannel = song.play(); } Now I want to be able to check if the song is buffering or not. Is there a w...

Shut off windows sound using ASP.NET

Hey, How can I shut off the windows sound from an ASP.NET page. Thanks. ...

Programming graphics and sound on PC - Total newbie questions, and lots of them!

Hello, This isn't exactly specifically a programming question (or is it?) but I was wondering: How are graphics and sound processed from code and output by the PC? My guess for graphics: There is some reserved memory space somewhere that holds exactly enough room for a frame of graphics output for your monitor. IE: 800 x 600, 24 bit...

CONVERT .AU file TO .OGG file

Hi, I want to convert .au file to .ogg file using shell. I have found oggconvert but it works as GUI not on the shell. I am having an client server application . The client will send me .au sound file. On the server , I want to convert it to .ogg file. I m using Ruby on Rails as server ...

How do I get a sound file's total time in Java?

How do I get a sound file's total time in Java? --UPDATE Looks like this code does de work: long audioFileLength = audioFile.length(); recordedTimeInSec = audioFileLength / (frameSize * frameRate); I know how to get the file length, but I'm not finding how to get the sound file's frame rate and frame size... Any idea or link? -...

How to handle mp4 files with Java?

Mp3 files can be handled using this mp3 SPI support, but I'm not finding something similar to mp4 files. Any help would be appreciated. --UPDATE What I want to do is get the file's size, as I do with wave files using this code: AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(file); AudioFormat format = audioInputS...

Filtering constant noise out of a sound stream

After watching the first game of the FIFA worldcup I was very annoyed by the sound of the Vuvuzelas. A theoretical question came up about filtering that noise out of the sound stream. What algorithms are needed to remove such a "constant" noise and is it possible to keep the quality of other background sounds? ...

Real-time equalizer for all audio on computer

Is it possible to capture all the sound from a computer and have it pass through a equalizer before reaching the speakers? How can you program a band pass filter on it? EDIT: I'm trying to get this on Windows (with Python? heh) but if there is a generic, cross-platform approach that would be great. ...

how to get game sound or how to create good sound for iPhone

Hi all, I am having problem of getting sound. i.e. how to get good sounds for our iPhone games? or how to make some good quality sounds for iPhone game applications so that the applications will become some more attractive? There are many sites like www.freesound.org , but I am not able to get good sounds as per my choice. If any one...

How to intercept and apply effects to Firefox audio/sound output

Hi I want to build a Firefox extension that will allow me to directly manipulate the audio output, applying live filters and effects, from (for example) a streaming video site. Im struggling to find any good resources to help me. I think the effects bit will be ok but I need to find a way of intercepting the audio stream output. Does a...

how to add a sound to link

HI all, I want to add a sound to my link please tell me is there any jquery or javascript to add sound i have used following but its not working.. <div align="center"><a href="our_product.html" class="footermenu" onmouseover="MM_controlSound('play','document.CS1276334226609','drop/downloadb12bb644.mp3')">Our Product I</a></div> Thank...