Soundcard : RAW pchar data to 8-bit numbers (integers...or?)

Posted on 2003-10-23
Last Modified: 2010-04-05
I have code which records from soundcard. I saves values in RAW format.

What should I do that it shows some numbers instead of RAW strange alphabets.

Each sample should include amplitude of sample, I would like to see what amplitude was.
Question by:simoha
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Accepted Solution

adlabac earned 30 total points
ID: 9612352
The solution:

 With WaveHdr do
    For I:=0 to dwBytesRecorded-1 do
      Sample [I]:=Ord (lpData [I]);

Best regards,

Author Comment

ID: 9753806
Hi Sasha,

How should I change your code to record from linein plug ?


Expert Comment

ID: 9755170
The program does not choose the input. You have to do it, instead. The easiest way is via Volume Control - double click at the speaker in the system tray, choose Options/Properties/REcording and click on OK. Then you will receive volume controls for recording, where you can enavle/disable inputs.

Best regards,

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor ( Top Charts is a view in which you can set seve…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question