audio

Playback MP3 using RemoteIO and AudioUnits on iPhone... possible?

I want to playback an mp3 rather than an uncompressed file using RemoteIO / AudioUnit. Using uncompressed files obviously uses far too much disk space (30MB vs 3MB for mp3). Is this even possible? If so, can you provide a little code headstart? Thanks a million. ...

Preload sounds played via iPhone AudioServices

I built an iPhone app using AudioServices to play short sounds. The first time a sound is played, there's a delay of half a second or so while the sound loads before it plays. This definitely makes for an awkward user experience. Is there a way to preload sounds for AudioServices to play, or do I need to switch to audioQueues or some ...

audio to 8-bit text sample conversion

Hello community. I have an interesting question today. I need to convert some pokemon audio files to a list of 8-bit samples (0-255 values). I am writing an assembly routine on the MC6800 chipset that will require these sounds to be played. I plan on including an array with the 8-bit samples that the program will loop through when a fun...

Multiple Audio Conferencing and MBONE

I currently developed one on one audio chat using C# socket Class and Direct Audio (Direct X) from a UDP connection, Furthermore I also implimented the G711 compression algoritm for fast data transfer , and now i have been asked to impliment Audio conferencing for multiple users in distinct room ... like the one they had on yahoo you en...

Html: play audio without controls?

I need to play a mp3 audio file when the user clicks on a image. I only want to audio to play, i.e. there should be no controls, widgets, etc. Nor should the browser launch an external application. Edit: ok, I might be able to try out flash. recommendations for a lightweight flash player? ...

How to find out ALSA audio device capabilities programmatically in Linux without opening the device

How do I find out the capabilities of ALSA devices without opening the device first? Problem is, I need to supply the parameters to the snd_pcm_open() function to use the test functions which to me is silly. Why ask whether this is a playback or record device if I have to tell it to the open function first? As an example, I would like ...

convert bits to sound

i want to convert bits of data to sound, for example 1010 to beep-nobeep-beep-nobeep.how can i compress more bits in it ...

GUI Control For Audio Presentation

I need GUI control for audio file presentation. The language is not very important but it should run on windows platform. I should be able to :- load the file play the sound put and move markers across the audio bar. it would be nice if it can load itself from RTP wireshark captures (and not wav files). An example may be seen in ...

Continuous Streaming PCM data in C++?

I have a stream of PCM audio captured from a cell phone, and I want to play it. I am trying to find a lightweight method of playing this audio in C++. I can already slap on a wave header and create a file that plays in any media player, but I want to play the file in real time as it streams in. I would like to avoid writing the file to...

How to play multiple sounds in AS2 or AS3 with a custom delay?

I need to realize a multiple-track player. The user can upload multiple tracks and mix (play them together). My problem is to allow the user to define an exact start position of each track to allow a synchronization between them, something like this: Track 1: start at [x] sec. Track 2: start at [y] sec. play/stop where the user can s...

How to play looping sound with OpenAL on iPhone

I'm following a tutorial about playing sound with OpenAL. Now everything works fine except I can't make the sound looping. I believe that I've used AL_LOOPING for the source. Now it can only play once and when it finishes playing, the app will block(doesn't response to my tap on the play button). Any ideas about what's wrong with the cod...

C# WMPLib Duration of a mp3

Hello! Im using WMPLib to make an easy mp3player in C#. Im almost done but theres one more thing I want to do. I Would like to how far gone the song is and also, how much is left of the song. using for example the progressbar. thanks Adam ...

waveOut (Win32API) and multithreading

Hi I cannot find any information about the thread-safety of the waveOut API. After i creating new waveOut handle, i have those threads: Thread 1: Buffers handling. Uses those API functions: waveOutPrepareHeader waveOutWrite waveOutUnprepareHeader Thread 2: Gui, Controller thread. Uses those API functions: waveOutPause waveOutRes...

What's the difference between all these audio frameworks?

In the documentation I see several frameworks for audio. All of them seem to be targeted at playing and recording audio. So I wonder what the big differences are between these? Audio Toolbox, Audio Unit, AV Foundation, and Core Audio. Or did I miss a guide that gives a good overview of all these? ...

Export Console.Beep() Series to File

I'm working on a side project for HAM Radio examination where the user enters text and Morse Code is played back utilizing .NET's Console.Beep(). I'm looking for possible solutions to export this as a recording (audio file) for later playback using standard audio players (Media Player, etc.). Any recommendations on existing code or fre...

Java Sound API - Distinguish multiple equal USB sound cards

I'm using 4 USB sound cards (ASUS Xonar U1). I want to send to each one of them a different sound (the same text narrated in different languages). For now, what I do to get the sound mixers that I'm interested in, is something like this: Info[] mixerInfo = AudioSystem.getMixerInfo(); int count = 0; for (Info i : mixerInfo) { System....

iPhone SDK trimming audio file

Hi I have implemented a audio recording feature using AVAudioRecorder with AVSampleRateKey as 44100.0 and its saved as .caf. Once the audio is recorded, I want the user to be able to trim the audio from both the ends if required. Can some one please help me implement this? In my case since the AVSampleRateKey is 44100.0, 44100 bytes re...

Recommended way to work with audio in .NET applications?

I'm trying to get started with a simple audio application under .NET 3.5 (preferably in VB.NET, but will happily use C#). What I'd like to do is: Continuously record audio from (the default) Windows audio input device in 8-bits-per-sample PCM format For every N bytes captured, do some analysis on the raw audio (some RMS and/or SPL calc...

How to relate WAVE_MAPPER audio line with its audio device

Hello fellow programmers, I'm developing an application that among other things, enumerates all input audio devices (using SetupAPI) and then for each audio device, it lists all input audio lines (using winmm.dll). Basically, the way I'm relating the two is getting the device path from the audio device and then using waveInMessage to ...

Capture microphone audio stream in Windows using C

I'm looking to build a Morse decoder (and eventually a coder) in C. I'd like to use the audio port as input, and sample the incoming voltage on the port. How do I go about reading the voltage on a microphone audio port in Windows using C? ...