Solved

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

Posted on 2003-10-23
4
268 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
  • 2
  • 2
4 Comments
 

Author Comment

by:simoha
Comment Utility
0
 
LVL 2

Accepted Solution

by:
adlabac earned 30 total points
Comment Utility
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
Comment Utility
Hi Sasha,

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

Harri
0
 
LVL 2

Expert Comment

by:adlabac
Comment Utility
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 your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now