sound

iPhone AVAudioPlayer loop stuttering?

I have a sound that is about 2 seconds long which I have set it's it's numberOfLoops property to -1, but it has a .5 second lag between loops i want the sound to fade into itself when it is looping. Help please! ...

Strange behaviour with AVAudioPlayer on the iPhone

I'm attempting to play a sound using AVAudioPlayer. Should be simple, but I'm seeing some odd results. Code: NSString *path = [[NSBundle mainBundle] pathForResource:@"pop" ofType:@"wav"]; NSURL *url = [NSURL fileURLWithPath:path]; AVAudioPlayer *sound = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:nil]; [sound play]; [sound r...

Java generating sound

Hey guys, i created a pong clone, i would like to add some sound effects when collisions occur my problem is every example i could find about synthesizing sound takes about 30 lines of code considering my whole application is 90 lines of code i am looking for a simpler approach. Is there a simple way to create a beep sound of different t...

Trouble with multiple songs in Flex - AS3

Hello all, I am trying to create a mini media player AIR app that allows users to view videos, images, and songs loaded in through an external XML file, while also allowing the user to browse through their own files and play any media through the viewer. As of right now, I can get videos to stop playing when an image thumb is clicked, ...

What is the smoothest audio API for looping iPhone sounds

I am trying to loop a 2 second sound continuously that I am using in my touchesMoved method and want to make it play continuosly and not stutter or stop because the user stopped moving their finger and also maybe fade the sound into itself smoothly. I have tried system sounds and AVAudioPlayer ...

Where is DRV_QUERYFUNCTIONINSTANCEID declared?

This question is related to this one. I need to use the winmm function waveInMessage using the above mentioned constant. I can find a bunch of similar defines (such as DRV_QUERYDEVICEINTERFACE) in the mmddk.h, but the pair DRV_QUERYFUNCTIONINSTANCEID and DRV_QUERYFUNCTIONINSTANCEIDSIZE is not. They are mentioned in the MSDN document en...

How can i create a melody? Is there any sound-module?

I am confused because there are a lot of programms. But i am looking something like this. I will type a melody like "a4 c3 h3 a2" etc. and then i want to hear this. Does anybody know what i am looking for? thanks in advance ...

SoundPlayer and Windows 7 wav file

When I try to play the sound file "Windows Critical Stop.wav" I get the following exception: exec {"Sound API only supports playing PCM wave files."} System.Exception {System.InvalidOperationException} I understand what PCM is, I just do not know how to either: 1) play the sound file, 2) determine apiori that it is not PCM and will no...

making sound on on collision detection part

Can anyone provide me codes for putting a sound during collision detection? Here is my code for collision detection self.navigationItem.leftBarButtonItem = nil; float distance_Ob1 = sqrt ((Devil.center.x - Object.center.x)*(Devil.center.x - Object.center.x) + (Devil.center.y - Object.center.y)*(Devil.center.y - Object.center.y...

What audio API would I use, on the iPhone, to record audio and then in return modify it while playing?

I want to be able to record audio. then modify it like add effects, slow down and it speed up while playing it. ...

Play Subset of audio file using Pyglet

How can I use the pyglet API for sound to play subsets of a sound file e.g. from 1 second in to 3.5seconds of a 6 second sound clip? I can load a sound file and play it, and can seek to the start of the interval desired, but am wondering how to stop playback at the point indicated? ...

Hooking into a wave-out on different platforms

I am going to apologize in advance for being extremely vague, but my knowledge in this area is somewhat limited so I don't know the neccessary "keywords" to make my point/question clear. Sorry. What I want to do is to find a way to obtain access to raw audio data as it is being output, say, when some external application is playing back...

Mute browser from a C# app?

Is it possible to mute Flash and/or Firefox from a .Net app? Our app knows when it's about to initiate a phone call, so it would nice if it could mute any streamed audio on the user's browser. Let's assume the user is known to use Firefox and the streamed content will be Flash based. This post mentions some tools to mute Flash and Fla...

What API's provide Nokia for Sound to text and text to sound transformation?

What API's provide Nokia for Sound to text and text to sound transformation for Java or C++ programmer? What do I need? Links to best API's of your choise Links to best Blog Articles/Tutorials on topic ...

How to set sound volume to 0 in IFrame ?

I have the following line in my Html file, which displays a video feed, how do I set sound volume to 0 in IFrame ? So that when the page is first loaded, there is no sound. <iframe src="http://onionz.co.cc/ain.php?psid=1626397" id="player" scrolling="no" frameborder="no" align="center" Width=588 Height=351></iframe> Is there a paremet...

How do you completely remove and release memory of an OpenAL sound file?

Hi, I have a small level based iPhone app. I need to load and release sound files for each level. Everything works fine with my openAL SoundManager except releasing sounds. At first, when I remove a sound, it seems to do what it is meant to do – it removes the sound and I can’t access it again unless I reload it. BUT, when I test my ap...

How to change pitch continuously in Java sound?

I'm working with midi using the Java sound API. Basically I'm trying to achieve a portamento effect where I can slide between different notes. The closest I've gotten is using the setPitchBend() method in MidiChannel. However, this only allows a range of 2 semitones from the note I started with. Is there another way to achieve this porta...

Data Formats and File Formats Java Sound

I'm going through the Java Trail on their Sound api and they described two types of formatted audio data (data format and file format). From my understanding of it data format tells you how to interpret the raw sound data, while file format tells you how to interpret the file that contains that data. They used mp3 as an example for a spe...

Flash AS2 (CS4) - play sounds in sequence when each has ended.

Hi people, I have 3 sounds that i would like to play, they are in my library. I can play any of of them using soundName.start(0,1) with the code below: firstSound = new Sound(); firstSound.attachSound("Sound1"); secondSound = new Sound(); secondSound.attachSound("Sound2"); thirdSound = new Sound(); thirdSo...

How can i get 2 wavefilereaders to play sequencially?

Hi I'm trying to play a set of audio wav files being sent over the network for playing as a overall sound stream. How do i get a set of these chunks to play one after the other with no sound breaks or blips using NAudio? I can have 1 file play, but I cant find a way to detect when one sound file ends or how to attach the 2nd sound file ...