• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 312
  • Last Modified:

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

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
simoha
Asked:
simoha
  • 2
  • 2
1 Solution
 
simohaAuthor Commented:
0
 
adlabacCommented:
The solution:

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

Best regards,
  Sasha
0
 
simohaAuthor Commented:
Hi Sasha,

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

Harri
0
 
adlabacCommented:
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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now