sound

can IcedTea's Pulse Audio implementation of Java Sound be taken from OpenJDK and run on Sun Java

I have found Sun's implementation of JSAPI on Linux to be beyond awful. To put it mildly. The Pulse Audio implementation, courtesy of IcedTea, has some quirks but offers much better performance overall. My only problem is that I don't want to force end-users to install another JRE on my app's behalf. Is there any feasible way to extract ...

OpenAL - playing buffer backwards?

I'm working on a cocoa-touch app using OpenAL, but I'm willing to switch to another framework if I'm forced (I don't really need the 3d stuff). I've been searching for a way to play a sound backwards but I've only found (very complicated) examples using Audio Unit. Is there anyway to perhaps store a buffer in reverse so I can play it b...

Playing multiple sounds and controlling the volume using java

I'm writing an application which plays multiple sounds concurrently, each sound needs to be played at a different volume. Once a sound is playing I never need to change its volume, which may simplify things somewhat. I cannot find a good way to do this. I can't find a way to play an mp3 sound at a set volume using Java. The JLayer libr...

How do I reverse my sound volume math for my volume slider?

Hi Stackers, I'm building a video player and am kinda stuck at the volume slider part. It's a YouTube style vertical slider, meaning if the slider is in the top position volume should be 100% and if the slider is dragged to the bottom position sound should be 0. Currently it's doing the opposite of what I want :( Dragging the slider dow...

Can I use the "free" sound files from this website?

For not-free iphone applications, can I use sound files from this websites? Tintagel's Free Sound File Archive Can I download the wav files and use/play them in my app, without getting into any problems? I just need several very short wav sounds(shorter than 1 second). ...

Capture sound output on mac

I am trying to port my screensaver from windows to mac and one of its features was reacting on system sound output. On windows it was easy using Direct Sound, but I can't find any example of capturing sound output on mac. Is it possible even possible without writing something like kernel extension? Using flash it is also very easy — it e...

C# XNA: stopping and playing Cue (sound) objects

I am trying to stop a Cue, then play it again. This code is in the Update() loop: Cue torpedoSound = soundBank.GetCue("torpedo"); torpedoSound.Stop(AudioStopOptions.AsAuthored); torpedoSound.Play(); // Invalid Operation Exception However, I always get an InvalidOperationException at the above location. The documentation says that will...

simple record and play application!

Hi all, I am trying to make a simple application which will store the sound said by user , say on click of record button and will play it back to him/her , say on click of play button. Can anyone suggest me some appropriate way to do this ?? Thanks, Miraaj ...

Playing mp3 on iphone sdk?

-(IBAction)musiconButtonClicked:(id)sender{ NSString *path = [[NSBundle mainBundle] pathForResource:@"NextRevIt" ofType:@"mp3"]; AVAudioPlayer* audioPlayer = [[AVAudioPlayer alloc ] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL]; [audioPlayer play]; } -(IBAction)musicoffButtonClicked:(id)sender{ [audioPl...

How do I play a tone in Linux using C?

I'm trying to write a program to randomly generate music based on a simple set of rules. I would like the program to be able to generate its own sounds, as opposed to having a file with audio for each note. Does anyone know a simple way of doing this? It would be nice (but not essential) for the sound to be polytonal, and I would like a ...

Microphone auto level

Hi all! I'm looking for solution to tune mic's level in my VoIP app. I can get a level of sound, but want also tune mic's "volume" when it too low or too high in real-time. Like in Skype... It looks easy ex facte, but I think the algorithm should be a bit smarter then just turning the volume when level comes over hihg/low limits. I'm ...

sound synchronization in C or Python

Hi, I'd like to play a sound and have some way of reliably telling how much of it has thus far been played. I've looked at several sound libraries but they are all horribly underdocumented and only seem to export a "PlaySound, no questions asked" routine. I.e, I want this: a = Sound(filename) PlaySound(a); while true: print a...

How do I implement audioStreamDesc.mSampleRate = audioStreamDesc.mSampleRate * 1.2; into my code?

I'm trying to make a sound mixer iphone app, but I can't seem to do speed control. I've looked over the posts, and this seems like the thing to do, but how do I implement it into the program? ...

OpenAl pitch values for particular musical notes in an octave

Hi, I have an OpenAl sound engine on my iPhone app. When I play a sound that I have loaded, I can control it's pitch. In OpenAl a pitch set to 1.0 has no effect. If you double it to 2.0, it plays the note 1 octave higher(12 semitones). If you halve it, to 0.5, it will be an octave lower (12 semitones). So, my original sample is playi...

What's the most suitable sound/audio framework for iPhone OpenGL-ES games?

I'm making a game for iPhone/iPod. My engine uses OpenGL-ES, and this means game requires some performance. (realtime games, not a static boardgame like games.) I looked at basic sound framework in iPhone, there're several frameworks,(Core Audio, Audio Toolbox, OpenAL...) but I cannot determine differences of them in detail. I think Op...

How to play a sound clip in JNLP ?

I have the following line to play a sound clip : Applet.newAudioClip(new URL("file:/C:/Dir_Sound/music.au")).play() it works in standalone app, but in jnlp I got an error message : java.security.AccessControlException: access denied (java.io.FilePermission C:/Dir_Sound/music.au read) I'm not running it in "all-permissions mode", is ...

wav amplitude in java (stereo or more channels)

Hi does anyone know how to find the amplitudes within a WAV file in Java? If the file was stereo (or has more channels) how can the data be put into arrays? Thanks! ...

How does Android sound mixing really work?

Is there any definitive source that explains how Android sound mixing really works? I'm getting a really unexpected behavior using SoundPool on STREAM_NOTIFICATION when it mixes with music on STREAM_MUSIC. When music is playing, even if its volume is way down, the sounds played by SoundPool are at 50% of the volume than when no music is...

How to play sounds in Java games?

I'm successfully playing sounds in a Java (1.5) applet game using the following code: // get an available clip to play it Clip clip = null; for (Clip clipTemp : players) { if (!clipTemp.isOpen()) { clip = clipTemp; break; } } if (clip == null) { // no available player found, don't play return; } clip.open(au...

c++ FFT Beat detection library?

Hi, I am currently looking around for a good allround beat detection library / source code in C++ since I found it really hard to achieve satisfying results with the beat detection code I wrote myself using this tutorial: http://www.gamedev.net/reference/programming/features/beatdetection/ It's especially really hard if you want to mak...