LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

configuring sound card

Hi,

I am programming an audio application in LabVIEW.
I need to record and play simultaneously using
line in and line out.

How can I configure the sound card in order to use
line in and line out? Furthermore, I would like to
be able to specify the recording level as well as
the playback volume.

It is possible to configure the sound card
manually, but it would be nice if it could be done
automatically.

My guess is that I need to call the windows api,
which controls the sound card settings. However, I
have not been able to locate an api, which can do
this for me. Can anybody tell me, which api I can
use and in which dll it is located, or is there
another possibility to solve my problem?

Rasmus Christiansen
ras@telital.dk


Sent via
Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 1 of 3
(4,288 Views)
....
>
> My guess is that I need to call the windows api,
> which controls the sound card settings. However, I
> have not been able to locate an api, which can do
> this for me. Can anybody tell me, which api I can
> use and in which dll it is located, or is there
> another possibility to solve my problem?
>

There are some sound VIs that ship with LV5.1 and
are available on the ftp site that use the multi-
media functions to access the sound card. They
may be a good place to start.

Greg McKaskle
0 Kudos
Message 2 of 3
(4,288 Views)
In article <378C7DEB.9447EE32@austin.rr.com>,
GMCKASKLE@austin.rr.com wrote:
> ...
> >
> > My guess is that I need to call the windows api,
> > which controls the sound card settings. However, I
> > have not been able to locate an api, which can do
> > this for me. Can anybody tell me, which api I can
> > use and in which dll it is located, or is there
> > another possibility to solve my problem?
> >
>
> There are some sound VIs that ship with LV5.1 and
> are available on the ftp site that use the multi-
> media functions to access the sound card. They
> may be a good place to start.
>
> Greg McKaskle
>

I am familiar with the sound VIs that are shipped with LV5.1 (I am using
LV5.1), but none of them can do an advanced configuration of the
sound
card.

What I need to do is:
- use line in for recording
- set the recording volume
- use line out for playback
- set the playback volume (supported by LV5.1)

After this configuration it is easy to play and record sounds using the
VIs that are shipped with LV5.1

In order to do the configuration, I need to use the winAPIs that are
located in winmm.dll in order to control the mixer - I guess. I have
found some APIs, which should be able to control the mixer, but they are
not trivial to use - (I am not an expert in windows programming).

I was hoping that someone had experience with multimedia programming
in Windows/LV and could tell me which winAPIs I should use.

Rasmus Christiansen


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 3 of 3
(4,288 Views)