The principle of increasing or decreasing PCM audio data is primarily to multiply the sampled data by a number or divide by a number, but pay attention to overflow handling. Implementation of the following C language implementation
#define OLD_FILE_PATH "FILE.PCM" #define Vol_file_path "VOL.PCM" int volume_adjust (short * in_buf, short * out_buf, FL
Oat in_vol) {int i, TMP;
In_vol[0] float = in_vol-98;
if ( -98
In the above program
Multi-channel lpcm: the original format of lossless audio tracks. It is equivalent to a wave file and does not require decoding. You can directly input a Power Amplifier for DA conversion. The fiber optic and coaxial interfaces can only transmit two-channel lpcm, multi-channel lpcm requires HDMI interface transmission. PCM: nonlinear pulse Coding Modulation
Lpcm: linear pulse Coding Modulation
They are an encoding method for converting analog speech s
Example 8: DirectSound PCM and directsoundpcmThis document records the techniques used by DirectSound to play audio. DirectSound is the most common Audio Playback Technology in Windows. Currently, most audio playback applications use DirectSound. This article records an example of using DirectSound to play PCM.Note: A dear friend has reminded me that DirectSound is planned to be replaced by XAudio2. Later, I found that this was the case. Therefore, in
Like videos, audio transmission often requires compression. The following describes the use of the PCM audio bare stream File compression and decoding library provided by hith, comparing the compressed and decoded data of a file, we can clearly find that the audio compression process of PCM> ADPCM is lossy. For file comparison, I am using the BCompare software, which is definitely a must-have for programmer
[TOC] Introduction
A simple Save the PCM demo, note to save there for the two-channel processing, because the PCM pair of two channels is alternately stored code
/* * A simple Save the PCM demo, note to save there for the two-channel processing, because the PCM pair of channels are alternately stored * Miu *MK (8214860
PCM file: Analog audio signal via analog-to-digital conversion (A/D transform) directly formed binary sequence, the file has no additional file headers and file end flags. The Windows Convert tool converts files in PCM audio format to files in Microsoft WAV format.
Brief introduction of pulse coded modulation PCM file format
Digital audio, in fact, is to digit
PCM encoding (original Digital Audio Signal Stream)
Type: Audio
Maker: ITU-T
Required bandwidth: 1411.2 kbps
Feature: sound source information is complete, but redundant
Advantages: sound source information is fully saved and sound quality is good
Disadvantages: Large Information volume, large Redundancy
Application: VoIP
Royalty: free
Note: in computer applications, PCM encoding can reach the high
Directsound capturing microphone PCM Data encapsulation class
There are many ways to read PCM data from a microphone on the Internet. I just released a directsound microphone PCM Data Collection class I wrote here. Through this class, we can easily use directsound technology to collect microphone data, developers do no
Overview of PCM File Format
PCM file: the analog audio signal is directly formed by Analog-to-analog conversion (A/D conversion ).Binary SequenceThe file does not have an additional file header and end mark. Windows Convert can Convert PCM audio files to Microsoft WAV files.Number of channels,Number of sampling digitsAndSampling frequency.
Sampling frequency:Tha
This article describes one of the simplest audio encoders based on FFmpeg. The encoder realizes the PCM audio sample data encoded as AAC compressed encoded data. The encoder code is very simple, but each line of code is very important. By looking at the source code of this encoder. The ability to understand the FFmpeg audio encoding process.This program uses the latest version of the class library (compile time is 2014.5.6). The development platform i
PCM
The abbreviation of Pulse-code modulation. (I2S is only a branch of PCM, and the interface definition is the same. The sampling frequency of I2S is generally 44.1khz and 48 khz, And the PCM sampling frequency is generally 8 kHz and 16 kHz. There are four groups of signals: Bit Clock signals, synchronous signals, data input, and data output .)
Two important in
How to encapsulate pcm data into wav Files in C Language
Pcm is the raw audio data. wav is a common audio format in windows. It only adds a file header to the pcm data.
// WAVWriter. cpp: defines the entry point of the console application. // # Include "stdafx. h" # include
Using namespace std; typedef struct WAVE_HEADER {// RIFF char chunkID [4]; // long i
Tool encapsulation for PCM conversion MP3 and pcmmp3
Tool encapsulation for PCM conversion MP3
Description
1. Simple encapsulation of PCM to MP3.
2. Use the https://github.com/wuqiong/mp3lame-for-iOS to generate a 64-bit lame library.
Source code
Https://github.com/YouXianMing/iOS-General-Tools in PCM-to-MP3
//// Pc
My program was changed based on the faac example in the frontend directory in the faac 1.28 library.
The following is the procedure of running the program:
First, call faacenchandle hencoder = faacencopen (samplerate, channels, samplesinput,
Maxbytesoutput );
1.Open the AAC encoding engine and create an AAC encoding handle.
The samplerate parameter is the sampling rate of the audio PCM stream to be encoded, and channels is the number of channels of
This article describes one of the simplest audio encoders based on FFmpeg. The encoder realizes the PCM audio sampling data encoded as AAC compressed encoded data. The encoder code is very simple, but each line of code is important. By looking at the source code of this encoder, you can understand the FFmpeg audio coding process.
This program uses the latest version of the class library (compile time is 2014.5.6), the development platform for VC2010.
This article mainly introduces the use of WINDOWSAPI implementation of the PCM audio method, very practical a function, the need for friends can refer to the nextThis paper introduces the method of using WINDOWSAPI to realize the playback of PCM audio, which is similar to the principle of using WINDOWSAPI to get audio recording, so it is no longer detailed to describe the parameters of the specific function
24-bit PCM
24-bit linear PCM is stored in blocks. Each block is divided into two parts. The first part contains the most significant two bytes of each channel for two samples in big endian order:
The second part contains all least significant bytes of each channel for the two samples in the same order:
The complete block looks like this:
T = Top byte = bits 23 .. 16
M = middle byte
PCM data recorded with a microphone, 16bit, 48KHz, mono, and I would like to get the 16KHz sampling rate of the PCM data, then by reducing the sampling rate of the method to achieve 48000HZ to 16000HZ sample rate conversion.
The conversion principle is relatively simple, 48000HZ to 16000HZ, actually dropped 3 times times, in the same time unit interval, 48000HZ sampled 3 points, 16000HZ sampled a point, tha
[Concept]
The PCM (Pulse Code Modulation) Audio Encoding format is also calledPulse Coding Modulation. It is to convert analog signals such as sound into a symbolic pulse column, and then store records.
Principle]
A continuous analog signal with continuous values is transformed into a discrete time. The Discrete digital signal is then transmitted in the channel. pulse coding modulation is the process of first sampling the analog signal, then quantify
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.