Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi to all
anyone can help me to know hat is 16 bit linear pcm?

From the OP: "I want to know about it from implementation point of view. I mean, how I can convert a singnal to 16 bit linear pcm? Is there any source code or example out?"
Posted
Updated 12-May-11 4:53am
v2

What does your signal start off as? If you do standard sampling with a 16-bit A/D (and quantize linearly, which is what most A/D's do already), you have 16-bit linear PCM. If you're talking about converting between types, then that's a different story.

Non-linear, or compressed, algorithms effectively add a larger number of quantization states for voltage levels that are of interest (typically the lower values), thereby adding fidelity to lower levels and compressing the large levels to a smaller number of states. (this includes u-law and A-law)

Differential, or delta, algorithms effectively encode the differences in voltage levels instead of the voltage level itself. They are commonly used for providing decent audio with lower bit rates. (includes DPCM)
 
Share this answer
 
v2
Comments
AmirAlilou 13-May-11 3:15am    
HI albert

Thank u somuch for this guid.i need to input 16 bit linear pcm stream into g.723 encoder.

what make me in wrong way about 16bit LPCM is a text in the G.723 standard(Input Signal Must Be converted to 16 bit Linear PCM). However thank u so much.

kind regardsamir
Albert Holguin 13-May-11 10:15am    
Now we're getting real information! see, while PCM itself is a general method, something like G.723 is a specification... Not linear either! ...why don't you put a link to whatever it is you're reading and don't understand and I'll see if I can clear that up for you... I may be busy this weekend so may not answer soon
Read all about it here: http://wiki.multimedia.cx/index.php?title=PCM[^].

Did you even try to google that?

Cheers!

-MRB
 
Share this answer
 
Comments
AmirAlilou 12-May-11 10:59am    
hi manfred,
i need to know implementation details.ho i can convert captured audio to 16bit LPCM?
is there any sample or source code or algorithm?

best wishes
Albert Holguin 12-May-11 13:19pm    
if you captured the audio with a 16bit A/D (from a soundcard or digitizer), then its already 16-bit linear PCM, see my solution
Google[^] is your friend. First result.[^]
Bing[^] is also your friend. The first result from google is also the first result from bing.
 
Share this answer
 
v2
PCM stands for Pulse Code Modulation, and Wiki [^]explains it better than I ever could (it uses pictures, which really helps)

The 16-bit part just tells you the range of values you can get 0 to hex FFFF in this case for 16 bits.
 
Share this answer
 
Comments
Albert Holguin 12-May-11 13:26pm    
PCM's not that hard to understand or explain (specially when linear), 3 steps:
1. Sample,
2. Quantize,
3. Encode
OriginalGriff 12-May-11 14:43pm    
I know - but if you need to ask the question, you need a picture to understand the point! :laugh:
Albert Holguin 12-May-11 16:33pm    
btw, the 16bit tells you the number of possible values, not exactly the range, since it can be signed or unsigned
OriginalGriff 13-May-11 3:22am    
Depends on the ADC, but yes.
I used to love CD players, which proudly boasted on the front "One bit DtoA converter!"
Albert Holguin 13-May-11 10:11am    
usually one bit implies a differential algorithm is used, still a lot of modern systems use low bit resolution for a lot of applications, GSM only uses 3bits

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900