Solved

recording audio from line-in of SB16

Posted on 1997-04-12
5
170 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
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

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

Author Comment

by:Aarto
Comment Utility
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
Comment Utility
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
Comment Utility
The actual question is how to find the handle of
line-in  waveform-audio input device
0
 
LVL 2

Expert Comment

by:javiertb
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Delphi 10 Seattle Dataset Actions 5 71
Using FastMM4... should I enable MMX option? 9 68
delphi exception 7 58
code issue 8 84
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 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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

771 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

11 Experts available now in Live!

Get 1:1 Help Now