Solved

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

Posted on 2003-10-23
4
271 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
ID: 9607664
0
 
LVL 2

Accepted Solution

by:
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,
  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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

895 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

14 Experts available now in Live!

Get 1:1 Help Now