sound

Getting nice sound from Java

I managed to play midi files using Java, but it produces some distracting noise. I figured out that this is caused by the poor quality soundbank file shipped with Java 6 SDK/JRE. How can I improve that quality? Here is what I have so far: MidiNote example using a Receiver works fine (sounds the same as when playing midi files with ...

jQuery: How do you preload sound?

I have a website that plays sound when you click a button. This is how I do it function PlaySound(soundfile) { $('#soundContainer').html("<embed src='/uploads/sounds/" + soundfile + "' hidden=true autostart=true loop=false>"); } How do you preload the sound file beforehand? Thank you. ...

trivial linux sound playback

The classical C program is something like: int main() { fprintf(stderr, "hello world\n"); } a classical OpenGL program is: open up a window setup ortho view draw a colored triangle Now, I want to do the most basic thing for sound in Linux. I want to: 1) open up speakers 2) send a bunch of data, meant to be interpreted at 40Khz, 3...

Capturing sound on java from bluetooth

Hi everybody! I can connect desktop computer and my mobile phone by bluetooth and listen music on desktop played on mobile. Is there any opportunity to capture this sound in Java? (on desktop, like it standard ms windows recorder does) ...

Converting raw bytes into audio sound

In my application I inherit a javastreamingaudio class from the freeTTS package then bypass the write method which sends an array of bytes to the SourceDataLine for audio processing. Instead of writing to the data line, I write this and subsequent byte arrays into a buffer which I then bring into my class and try to process into sound. M...

Is algebraic sound synthesis possible?

Lets say you have an normal song with two layers, one instrumental and another of just vocals. Now lets say you also have just the instrumental layer. Is it possible to "subtract" the instrumentals and obtain the pure vocals? Is there going to be loss? How would I go about performing this specific type of subtractive synthesis? ...

Is there any sound SDK which works with .NET?

I'm working on a C# XNA game, the most popular sound SDKs like MSS or FMOD mainly work with C/C++. ...

Randomly generate sound from onClick and onShake events?

I've literally looked everywhere on the net and found very little clarification on how to do this. Pretty much, I have 8 sound files laid out in an array.xml file and I need to play a randomly chosen file ONCE per or onClick or onShake. First off, what technique should I use to achieve this? ARRAY->RANDOM- STRING->PLAY? RANDOM...

Sound/Silence in a wav file.

Hi, I am searching for a utility/code that could detect and let me know if my 1 minute wav file contains sound or not ? Other way, if it could detect the duration of the silence(if exists) at any position in the wav file, that would also server the purpose. Does SOX support any command for that ? I tried with Java, but didnt found anyt...

Am I writing this right? [noob]

private final int NUM_SOUND_FILES = 4; private Random rnd = new Random(4); private int mfile[] = new mfile[NUM_SOUND_FILES]; //the second mfile //reports error everytime mfile[0] = R.raw.sound1; mfile[1] = R.raw.sound2; mfile[2] = R.raw.sound3; mfile[3] = R.raw.sound4; int s...

Sound sample recognition library/code

I don't want sound-to-text software. What I need is the following: I'll record multiple (say 50+) audio streams (recordings of radio stations) from that recordings, I'll mark interesting audio clips - their length ranges from 2 to 60 seconds - there will be few thousands of such audio clips library should be able to find other instanc...

Is it possible to play audio with ipod webpages?

I would like to have a page and either use m4a or ogg (other formats are ok but these are my preference) on my webpage. Does the ipod touch or iphone support webpages with audio? If so, is it HTML5 and what audio formats? (if html5 i'll assume i can use the audio object in javascript and not be forced to use the audio tag). ...

Choosing sound codec for network (c/c++)

Hi, I'am imnplementing real-time sound (voice) recording and transferring to another point in my application. I would ask who knows good codec or compression algorithm to transfer low-quality (max 32 kbit) sound data through the network. I know skype uses good compression, what codec use it? *It should be free I found also this code...

Goldwave Autotrim over Command Prompt

Hi, I have 1 minute wav file recordings. To check whether there is no voice present in the file, I am using Goldwave to trim the silence which lefts the file size very small in few Kbs. This tells me that there is no sound in most part of the file. But I am not able to do this via Command prompt using the Command line utility, Does Go...

Free sounds for iPhone games.

I'm looking for a good source for sound effects for my iPhone game. I like SoundSnap, but they charge you for every sound you download, not just the ones you end up using. Sound design in games can be a very iterative process and I don't want to pay for 10 sounds I never use before finding the right one. freesound.org is another reall...

Workaround for UnsupportedAudioFileException ?

I'm in a very early stage of writing a small music/rhythm game in Java (via Slick framework, which in turns uses OpenAL, but that's probably irrelevant here). The game needs to read (and playback) several sound files in WAV format, but some of the files are throwing [javax.sound.sampled.UnsupportedAudioFileException] exceptions. at jav...

How to make a web game load different files

I play a flash game online and I noticed that some sound files that are used in the game get downloaded to the temporary internet files directory. How can I get the game to use different sounds? I don't think that simply replacing the sound files will work, because even if I delete the sound files the game still has sounds. The only wa...

Determine when a loud sound is played in C#

I want to determine if another program plays a sound above a certain threshold. I am not looking for checking the volume settings on the computer or anything like that. I really just need to see if any app plays something higher then what I am expecting. Anyone know if this is possible or how to do it? ...

flex 4: swfloader - how to mute game completly

Hiya. Ive read some answers here regarding muting swfloader volume but none of the examples would work in flex 4. I tried doinf the following: this._swfGame.source=url; this._swfGame.soundTransform = new SoundTransform(0.0); this would shut down the volume of the preloader, but when the game starts the volume is back to normal. i tr...

How to play a sound file under Android browser.

Is there any way to play a sound file under Android browser? ...