sound

Actionscript Loading/Calling Sounds From String Array

i'm attempting to instantiate a bunch of sounds by creating a string array containing each sound's filepath (or name). var soundByName:Object = {}; var channelByName:Object = {}; var soundName:String; var channelName:String; loadSounds(); function loadSounds():void { var files:Array = new Array("sound1.mp3", "sound2.mp3"); //et...

Using .NET C#, I need to create a simple program that responds whenever it picks up any sound from the microphone input.

I am trying to create a program that will sit and wait until it picks up on any sound (i.e. a doorbell), and in response, triggers an event function that I can use to run some code. My exact goal is to have it run wmplayer playing a sound of a dog barking whenever it picks up something as loud as a doorbell from the microphone input. ...

How to change a sound playing start time in objective-c?

I would like to play a sound in Objective-C with a millisecond start time. I know it is possible this way but "currentTime" only takes seconds: currentPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:fileURL error:nil]; currentPlayer.currentTime = 100; Is there a way to set the start time with milliseconds? ...

kupdated slows down voice transmission

Hi I'm working on a device which primarily serves as a VoIP terminal. Currently I wrote an application whose main purpose is to record sound from the enlightened sound daemon v0.2.38 ( and to do some magic with it ). The problem is, that writing of the recorded data to disk ( or even calling rename to move a file ) causes kupdated daem...

FMOD play overlapping sounds

This may be a build in feature of FMOD, but I'd like to see if i can override it. When playing a SOUND with FMOD_System_PlaySound, FMOD_System_PlaySound( system, FMOD_CHANNEL_FREE, SOUND, false, &channel ) ; (YES I use the C api ;) ) If you've ALREADY started playing SOUND, then what happens is the original one is STOPPED and SOUND ...

Flash As3 Mute Button problems

Hey guys, I am trying to create a UI movie clip that can be used across different scenes. It uses variables from the root scope to determine states. When i press the mute button is works fine, however when i try to un-mute things go weird. Sometimes it takes 2 clicks to unmute, sometimes more. It seems random. Muting however seems t...

Inserting a WAV at a certain point in an audio file using python

My problem is the following: I have a 2-minute long WAV file, and my aim is to insert another WAV file (7 seconds long), at a certain point in the first WAV file (say, 0:48), essentially combining the two WAVs, using python. Unfortunately I haven't been able to figure out how to do that, and was wondering if there was some obvious soluti...

Flash computeSpectrum() unsynchronized with audio

I am using Flash's (CS4, AS3) SoundMixer.computeSpectrum to visualize a DFT of what supposed to be, according to the docs, whatever is currently being played. However, there is a considerable delay between the audio and the visualization (audio comes later). It seems that computeSpectrum captures whatever is on it's way to the buffer, an...

Python - platform-independent 5.1 Sound Library

Is there any dolby/5.1/7.1 audio processing Python library? It would be best if it is platform independent. Would be nice if it looks like: import lib f = lib.open("8channels_audiofile") lib.play(from=f.channel3, to="left rear"); ...

graphing amplitude

I was wondering if someone could point me to a good tutorial or show me how to graph the amplitude from a byte array. The audio format I am using is: U LAW 8000.0 Hz, 8 bit, mono, 1 bytes/frame. ...

SoundManager2 has irregular latency

I'm playing some notes at regular intervals. Each one is delayed by a random number of milliseconds, creating a jarring irregular effect. How do I fix it? Note: I'm OK with some latency, just as long as it's consistent. Answers of the type "implement your own small SoundManager2 replacement, optimized for timing-sensitive playback" are...

RDP Redirecting sound from a Windows service

Bear with me on this one. I have a Windows service which can play .wav files for alerting. As long as the computer has a sound card and speakers, it works fine. There is also a GUI that lets the user choose which sound that the service will play. When the user is connected via Remote Desktop to the GUI and tests the sound, he hears i...

How do i get a .wav sound to play ? [Android]

Im making an app, and i want it to make a sound when a activity is opened , the sound file is in R.raw.sound_file , if someone could do some example code to make my app play a sound that would be great :) ...

Normalize amplitude and phase with c#

Hey I'm in the situation where i need to do some math related stuff in c# and for that i need some external libarys. The tool i look for should do the following actions: Process sound(wave/mp3): Normalize the amplitude Normalize the phase Any idea which way to go? And is there a big difference if I should to it on mp3 instead of w...

Normalize FFT magnitude to imitate WMP

So, I've been working on a little visualizer for sound files, just for fun. I basically wanted to imitate the "Scope" and "Ocean Mist" visualizers in Windows Media Player. Scope was easy enough, but I'm having problems with Ocean Mist. I'm pretty sure that it is some kind of frequency spectrum, but when I do an FFT on my waveform data, I...

Why is my sound not working in Flash?

This is what I have as far as code, it is in the first frame of the movie. nature = new Sound(this); nature.attachSound("sound_naturally"); nature.setVolume(50); nature.start(0,0); nature.onSoundComplete = function(){ nature.start(0,0); } trace(nature); The trace outputs '[object Object]' at runtime. I have the sound exporting to...

prototype functions off custom functions

Its a complicated senario for me. I have a sound management singleton with an asset like dictionary storing all referances to my urls and assets and the guff inside it- I have a function called addItem(id:String, url:String):Object I would love to do something similar as soundManager.addItem(id:String, url:String).play() or soundManag...

Which audio playback technology do I need for this?

I have trouble choosing the right audio playback technology. There's a ton of technologies to use on the iPhone, it's so confusing. What I need to do is this: start playing short sounds ranging between 0.1 and 2 seconds high quality playback, no crackle (I heard some of the iPhone audio playback technologies do a crackle sound on star...

iPhone SDK: how to disable my app sound if playing iPod content?

How can I disable my iPhone app sound if the user is playing iPod content? Thanks! ...

Android sound starter project for Eclipse

Is there an example Hello Sound project for Android that will show how to create beep sounds of a variable tone and duration? ...