?
Solved

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

Posted on 2003-10-23
4
Medium Priority
?
297 Views
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.
0
Comment
Question by:simoha
[X]
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
4 Comments
 
LVL 2

Accepted Solution

by:
adlabac earned 120 total points
ID: 9612352
The solution:

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

Best regards,
  Sasha
0
 

Author Comment

by:simoha
ID: 9753806
Hi Sasha,

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

Harri
0
 
LVL 2

Expert Comment

by:adlabac
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,
  Sasha
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month8 days, 19 hours left to enroll

765 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