adpcm

OpenAL: alBufferData returns AL_INVALID_VALUE even though input variables *look* OK?

萝らか妹 提交于 2021-02-07 19:24:26
问题 So, I'm building a threaded IMA ADPCM decoder streaming audio data to OpenAL (see below for short description) but I've run into some trouble. One of my issues is that sometimes my call to alBufferData: alBufferData(*bufferID, format, pcmData, sizeInBytes, bitRate); returns AL_INVALID_VALUE even though, when checking the parameters they look, e.g., like this: bufferID='109770616', format='AL_FORMAT_STEREO16', dataPtr='109754188', sizeInBytes='8164' Any clues, anyone? The actual sound being

Algorithm for converting PCM to IMA ADPCM?

白昼怎懂夜的黑 提交于 2019-12-11 12:39:42
问题 I have an algorithm for decompressing IMA ADPCM from http://wiki.multimedia.cx/index.php?title=IMA_ADPCM, but no way to re-compress it back to IMA ADPCM. Is there a simple pseudo code description, or do I have to reverse engineer it from the decompression algorithm? I'm doing this because I'm writing a server that needs to receive audio, merge the audio tracks together, then send it back out. Thanks for any help. 回答1: Oops... I did look around a bit and even found my way to this question:

What is the algorithm of converting pcm to adpcm?

邮差的信 提交于 2019-12-11 06:39:09
问题 What is the algorithm of converting pcm to adpcm? 回答1: ADPCM refers to a family of compression algorithms (mostly used for voice compression on phone lines). Sometimes known as G.721 and G.732 (and others). See http://www.javvin.com/protocolG7xx.html for more information. The spec for IMA ADPCM, which is the one that Microsoft implemented on Windows is available as photo-scans at Columbia university http://www.cs.columbia.edu/~hgs/audio/dvi/ PCM is uncompressed audio. 来源: https:/

Play raw uncompressed sound with AudioQueue, no sound

冷暖自知 提交于 2019-12-11 01:08:51
问题 I use three buffers with one queue, to play ADPCM data over network. The data is decoded from my app, and the decoded data (uncompressed pcm data) is verified correctly by playing from Audacity. However, I cannot hear any sound when playing from my app using AudioQueue. All AudioQueue API return values are noErr (0). I've been trying to follow AudioQueue does not output any sound by allocating three buffers . It didn't work for me! Somebody knows how to reveal more AudioQueue logs so I could

Windows Phone xaudio2

不羁的心 提交于 2019-12-01 12:19:53
Hej I am using a library for playing audio in Windows Phone found here. Which works fine. I am then trying to add a new .wav file to this system. And I get a memory error. Searching around on the internet gives me that I have to encode the audio using AdpcmEncode command-line tool. However using this tool cannot convert my .wav files. Can anyone help here, regarding encoding to get the audio working? Furthermore just for my information how big can my audio files be? I think I read some place 20 mb, but unsure. Encoding is a bitch. Even with me having the tool and .wav files I did not succeed

Windows Phone xaudio2

与世无争的帅哥 提交于 2019-12-01 11:18:46
问题 Hej I am using a library for playing audio in Windows Phone found here. Which works fine. I am then trying to add a new .wav file to this system. And I get a memory error. Searching around on the internet gives me that I have to encode the audio using AdpcmEncode command-line tool. However using this tool cannot convert my .wav files. Can anyone help here, regarding encoding to get the audio working? Furthermore just for my information how big can my audio files be? I think I read some place