Simultaneous playback and recording using VB 6.0/VB.net 
Author Message
 Simultaneous playback and recording using VB 6.0/VB.net

Hello all,
I'm new to VB, I want to be able to automate playing a WAV file and be
able to record audio at the same time (using VB6.0). I also need to be
able to set the sample rate and number of bits of the WAV files (ie.
for the recorded WAV file).  I've had some success playing and
recording, however not simultaneously.  Does anyone know an easy way
of doing this?  Does anyone know where I can find some source
code/examples that does this?  I've been looking all over but could
not find anything.
Thanks to anyone that can help! :)


Tue, 16 Nov 2004 08:24:44 GMT  
 Simultaneous playback and recording using VB 6.0/VB.net

Quote:

> Hello all,
> I'm new to VB, I want to be able to automate playing a WAV file and be
> able to record audio at the same time (using VB6.0). I also need to be
> able to set the sample rate and number of bits of the WAV files (ie.
> for the recorded WAV file).  I've had some success playing and
> recording, however not simultaneously.  Does anyone know an easy way
> of doing this?  Does anyone know where I can find some source
> code/examples that does this?  I've been looking all over but could
> not find anything.
> Thanks to anyone that can help! :)

I'm trying to do the same thing myself in order to measure the impulse
response of a room.  However, I decided not to use VB because I have
to do some pretty hefty calculations on this data which I found to be
too slooowww for VB.

You need to use the wavein/waveout api functions (among a few others)
in order to play/record.  Most of the working code that I have, I was
able to find off the 'net via a google search.  Also, Chapter 22 in
petzold's book has some VC++ examples for doing this stuff.

Steve



Mon, 22 Nov 2004 23:01:41 GMT  
 Simultaneous playback and recording using VB 6.0/VB.net
the fullduplex sdk sample shows how to do this using DSound, but its not VB.

VB.net is not supported from the 8.1 SDK, so be aware that you are off on
your own there.

--

Phil Taylor
PM : DirectX SDK, Managed DirectX, Windows XP Inbox 3D screensavers, and a
few more bits and bobs.
http://msdn.microsoft.com/directx
This posting is provided "AS IS" with no warranties, and confers no rights.


Quote:
> > Hello all,
> > I'm new to VB, I want to be able to automate playing a WAV file and be
> > able to record audio at the same time (using VB6.0). I also need to be
> > able to set the sample rate and number of bits of the WAV files (ie.
> > for the recorded WAV file).  I've had some success playing and
> > recording, however not simultaneously.  Does anyone know an easy way
> > of doing this?  Does anyone know where I can find some source
> > code/examples that does this?  I've been looking all over but could
> > not find anything.
> > Thanks to anyone that can help! :)

> I'm trying to do the same thing myself in order to measure the impulse
> response of a room.  However, I decided not to use VB because I have
> to do some pretty hefty calculations on this data which I found to be
> too slooowww for VB.

> You need to use the wavein/waveout api functions (among a few others)
> in order to play/record.  Most of the working code that I have, I was
> able to find off the 'net via a google search.  Also, Chapter 22 in
> petzold's book has some VC++ examples for doing this stuff.

> Steve



Tue, 23 Nov 2004 02:43:30 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Simultaneous access to file (VB.NET)

2. VB and Wave Record/Playback VBX?

3. Recording/Playback Wave with VB (0/1)

4. Video Control / MSVidWebDVD Samples for VB.NET DVD playback

5. Recording Keystrokes using VB(6.0)!

6. Recording Keystrokes using VB(6.0)!

7. Video Control / MSVidWebDVD Samples for VB.NET DVD playback

8. Recording Keystrokes using VB(6.0)!

9. vb3 to vb 6.0 or vb.net

10. VB 6.0 vs. VB.Net Event Termination

11. Opening a vb 6.0 form in vb.net

12. VB 6.0 project to VB.NET project ?

 

 
Powered by phpBB® Forum Software