Solved

recording audio from line-in of SB16

Posted on 1997-04-12
5
190 Views
Last Modified: 2010-04-06
Is it possible to record audio from the line-in port of SB16 and compatibles?  I can record from the mic using TWaveIn but can't do it using the line-in
0
Comment
Question by:Aarto
[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
5 Comments
 
LVL 3

Expert Comment

by:mheacock
ID: 1335350
Aren't mic and line-in the same?  I only have one input plug on my soundblaster.
0
 

Author Comment

by:Aarto
ID: 1335351
Not so in any soundcard i have..
I've got 2  soundcards.. (not in the same PC though)
A SB16 and a "Galaxy" SB-compatible..  both have line-in and mic input plugs. In control-panel, the only recording option for each sound card is from the mic-plug
0
 
LVL 2

Accepted Solution

by:
javiertb earned 200 total points
ID: 1335352
In the function waveInOpen I guess you'll have to change the parameter uDeviceID and instead of using the device identifier you'll have to use a handle of an open waveform-audio input device (the line-in in this case).

Anyway, you'll have to deal with wavein functions in order to retrieve information about line-in input device.
0
 

Author Comment

by:Aarto
ID: 1335353
The actual question is how to find the handle of
line-in  waveform-audio input device
0
 
LVL 2

Expert Comment

by:javiertb
ID: 1335354
Here you have how to get the LineId:

   Information: TMixerLine;
begin
   With Informacion Do
    Begin
       { Set record size}
       cbStruct := SizeOf(Informacion);
       { and number of the line we want to get information from}
       dwDestination := {Here it goes the number of the line :                            0,1,2...};
         { We get information about the line} }
       mixerGetLineInfo(0, @Information,                                                   Mixer_GetLineInfOf_Destination);
      { We get the number of channels, conections, controls and
        ,  LINEID accessing the following properties:
        They're all of dWord type
        cChannels
        cConnections
        cControls
        **************
        ** dwLineID **      
        **************      
        }
   end;
end

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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 I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

690 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