audio

Convert byte array to .wav java

I have a web service that returns an array of bytes and my intention is to convert said array to a .wav in the client (a handheld such as Blackberry). However I really have no idea of how to do that, I tried just making an FileOutputStream but of course that wouldn't play. So I am once again without knowing what to do. Any ideas? ...

WordPress audio plugin: Display mp3 link if browser dosen't support Flash

I'm using the 1pixelout audio player plugin (version 1.2.3) in WordPress (version 2.7.1) to post short audio clips. When I load the site in a browser that doesn't have a flash plugin, there's no fallback method to play the audio. Is there any way to get the plugin to gracefully degrade to provide a vanilla link to the MP3 file when fla...

How is audio represented with numbers?

I like thinking about how everything can be and is represented by numbers. For example, plaintext is represented by a code like ASCII, and images are represented by RGB values. These are the simplest ways to represent text and images. What is the simplest way that audio can be represented with numbers? I want to learn how to write progr...

IAudioSessionManager2 notifications not sent

I'm trying to monitor new audio sessions via Windows 7's IAudioSessionManager2 COM interface (coupled with IAudioSessionNotification). Currently, IAudioSessionNotification::OnSessionCreated() is never called and I've run out of ideas as to why. Code registering custom IAudioSessionNotification: #define SAFE_RELEASE(comObj) \ if(comObj...

Best Technology to use to set up an audio file cache

We have a client application that allows users to download full length 192Kb/s MP3 audio files. Because the files are stored externally to us as a business, we need to be able to: 1) Copy file from external location into a local Server cache 2) Copy that file to the client that requested it Obviously further requests on the same file...

Help with Audio Services function

Hi. This is the blurb accompanying the Audio Services function AudioServicesSetProperty. Its a bit over my head. Can someone give me an example of how to actually use this. Thanks. AudioServicesSetProperty Sets the value for a specified System Sound Services property. OSStatus AudioServicesSetProperty ( AudioServicesProper...

Noise in background when generating sine wave in Java

I'm getting a slight distortion (sounds like buzzing) in the background when I run the following code. Because of its subtle nature it makes believe there is some sort of aliasing going on with the byte casting. AudioFormat = PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, big-endian Note: code assumes (for now) that the data is ...

Get the amplitude at a given time within a sound file?

I'm working on a project where I need to know the amplitude of sound coming in from a microphone on a computer. I'm currently using Python with the Snack Sound Toolkit and I can record audio coming in from the microphone, but I need to know how loud that audio is. I could save the recording to a file and use another toolkit to read in ...

Where can I get freely available audio, graphics, and other resources for games?

I've done a google search of this topic, but so far haven't found anything satisfactory. From your experience, what's the best place to get game resources, like sprites, backgrounds, sound effects, music, etc.? To be more specific, I'm looking for more of sound effects and music, which I'm currently lacking more than graphics. However...

Using Cocoa to detect when a running application plays audio

I'm looking into writing an app that runs as a background process and detects when an app (say, Safari) is playing audio. I can use NSWorkspace to get the process ID's of the currently running applications but I'm at a loss when it comes to detecting what those processes are doing. I assume that there is a way to listen in on a process a...

Speex or nellymoser

I am developing a voice application, I have 2 options speex and nellymoser .Why should I use speex instead of nellymoser in flex application. ...

Reimplementing the "ToneMatrix" audio toy

There is a really cool audio "toy" called ToneMatrix. I would like to reimplement it as a Java applet. I've tried using JFugue's player.play with individual notes for sound and Thread.sleep for timing, but the results are horrible. JFugue stops responding after the 17th (yes, really, I counted) invocation of player.play and Thread.sleep...

Best audio playback api for C/C++ under Linux?

What is the best audio playback api for C/C++ for Linux, preferrably free/open source? I need it for embedded Linux, so I'm looking for something as lightweight as possible with not to many dependencies? Thanks a lot! ...

Playing multiple audio streams simultaneously from one audio file

Hi, I have written an application that receives media files from a central server and plays those files according to a playlist. All works well. A client has contacted us and wants to use our application to play some audio files as presentations in a kiosk-style application. So far, so good, our application can handle this no problems. ...

Redirecting sound in Windows Vista/XP

Hello, Is there any way to redirect the output sound back to recording input through C# without the use of any cable to do it? Thanks ...

VB.NET loop through audio

I would like to loop through audio in VB.NET. Here is my code: While blnAlert = True My.Computer.Audio.Play("C:\cat_1.wav") End While But it freezes the app. Cheers. ...

playing(and controlling) mp3s in Python

First things first, I am a Python beginner, with a typical C++/Java background for object oriented stuff. I was convinced to try Python for this current endeavor I am working on, and so far I like it. One issue I am having though is finding a good mp3 module. I have tried TkSnack, which installed and ran fine with no errors(as long as ...

WinForms window created on worker thread not receiving all expected messages

I am playing back audio in C# using the waveOut functions with the callback method where messages are sent back to a window handle. I am creating a Windows Form with an overidden WndProc function to listen for the MM_WOM_DONE messages. result = WaveInterop.waveOutOpen(out hWaveOut, devNumber, waveStream.WaveFormat, waveOutWindow.Handle...

Playing sounds with C++?

How would i make it so in my program there is a button when that button is clicked i want it to play a .wma file without opening and media player? ...

Can I use ffmpeg from inside a Perl script without a system call?

I'd like to convert mp3's to lower bitrates, as well as possibly convert video to mp3 using Perl. I looked at the ffmpeg module but it doesn't appear that it supports converting files, the only example I saw was grabbing pictures out of a video stream. Is there a way to do this in Perl with out using system() to call ffmpeg? ...