pcm

pcm raw

别等时光非礼了梦想. 提交于 2019-12-14 12:16:23
1、raw:本设备不解码直接输出到下一个设备,让下一个设备解码—外接功放就选这个 2、PCM录音:将声音变成符号化的脉冲列记录下来, 就是本机解码完成后输出给下一个设备—要是播放机本身强大就选这个 来源: CSDN 作者: 腥红之怨 链接: https://blog.csdn.net/qq_41834780/article/details/103474627

Convert MP3 to PCM in Java

别说谁变了你拦得住时间么 提交于 2019-12-13 17:44:17
问题 I want to convert MP3 file to PCM in Java. How to do that? 回答1: Get the mp3plugin.jar of the JMF. Add it to the run-time class-path of the app. to provide a decoder SPI for MP3. Get an AudioInputStream for the MP3 from the AudioSystem of Java Sound. Convert it to PCM using getAudioInputStream(AudioFormat,AudioInputStream). 来源: https://stackoverflow.com/questions/12437804/convert-mp3-to-pcm-in-java

How to play 16-bit pcm array programmatically [closed]

不打扰是莪最后的温柔 提交于 2019-12-13 15:26:58
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I have a short[] array filled with 16-bit pcm values. I want to be able to play it without adding any header, and without saving any files to my memory. I know that I might need a class that gives parameters like bit rate and stuff like that - but I want to do it all in my program without and files. I am working

Converting MIDI file to raw audio using a software synth

岁酱吖の 提交于 2019-12-13 11:41:41
问题 I'm trying to dynamically generate a small MP4 audio+video file directly from my Android app. My original plan of attack: The user enters some basic song data (a chord progression, etc) and the app builds a MIDI file. The system builds chord diagrams for each chord, and using a MIDI reader it generates the animations frames array that is timed to the MIDI Convert the MIDI into a raw PCM audio data <-- this S.O. question is specific to this point Apply the raw audio to the animation frames -

simple wav 16-bit / 8-bit converter source code?

拜拜、爱过 提交于 2019-12-13 07:00:51
问题 could someone provide me a link to source code (preferably C/C++) of a simple WAV 16-bit to 8-bit (and back if possible) converter? I have basic knowledge of C++ and I need to have a resource to understand wav writing and converting values for my new project. At this moment I have a lecture about RIFF chunks structure. Also any formulas for converting values between different bit depths (also these un standard) appreciated... I'll prefer it to be simple and command line so I can edit it with

Encoder/Decoder PCM to AMR Android

半世苍凉 提交于 2019-12-13 01:24:15
问题 I've been looking for a while now for any java library that allows me to encode and decode a PCM-AMR audio stream that is sent through a TCP socket connection. Without having to use Android's JNI. Is there anything that can help me? In the worst case scenario. How can I do it using any C++ library with JNI? (any reference of how to use ffmpeg with JNI will be appreciated) Hope you can help me. 回答1: Note that pcm usually means RAW and note encoded downstream of the microphone (hardware ) that

how to do mono to stereo conversion?

99封情书 提交于 2019-12-12 18:12:08
问题 I am using libswresample to resample from any PCM format to 44.1kHz, 16bit int, stereo. I was playing around with some audio volume analyzing of the resulting audio stream and I figured out that in case I have 44.1kHz, 16bit int mono as the source, I have roughly the formular: leftSample = sourceSample / sqrt(2); rightSample = sourceSample / sqrt(2); But I was expecting: leftSample = sourceSample; rightSample = sourceSample; (In case the source is stereo, I simply have leftSample =

Dynamic range compression at audio volume normalization [closed]

一笑奈何 提交于 2019-12-12 16:25:45
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 months ago . I already asked about audio volume normalization. On most methods (e.g. ReplayGain, which I am most interested in), I might get peaks that exceed the PCM limit (as can also be read here). Simple clipping would probably be the worst thing I can do. As Wikipedia suggests, I should

How to convert AV_SAMPLE_FMT_S16 to AV_SAMPLE_FMT_S16P?

亡梦爱人 提交于 2019-12-12 14:50:14
问题 I use ffmpeg to decode audio and use libmp3lame to encode it into mp3. As libmp3lame inside ffmpeg needs S16P instead of S16, I have to convert audio samples. I tried using swr_convert but everytime I get a random crash. I started to have doubt if swr_convert accepts S16 as input or not. So, how can I convert audio samples from AV_SAMPLE_FMT_S16 to AV_SAMPLE_FMT_S16P? 来源: https://stackoverflow.com/questions/18131389/how-to-convert-av-sample-fmt-s16-to-av-sample-fmt-s16p

Play PCM data in .NET Framework 2?

蹲街弑〆低调 提交于 2019-12-12 13:10:25
问题 I have a stream of u-Law compressed PCM data I am extracting from a Camera, I need to play this out the speakers? Anybody know how? I've tried decoding the u-Law into normal WAV Data and then use SoundPlayer but it never seems to work! Always SoundPlayer only supports PCM Data? I know the sounds ok, because I have saved it to a file (using a custom createWavHeader method) and iTunes can play it. 回答1: Windows comes with an ACM codec to convert u-law to PCM. You can use NAudio and use the