ANN: Updates to MSDN for 1/29/04

  • Thread starter Geoff Schwab [MSFT]
  • Start date
G

Geoff Schwab [MSFT]

Greetings,



The following article has been added to MSDN:



Recording and Playing Sound with the Waveform Audio Interface


http://msdnprod/library/default.asp?url=/library/en-us/dnnetcomp/html/WaveInOut.asp





The "Creating a P/Invoke Library" article and sample have been updated to
include a Registry sample.

http://msdnprod/library/default.asp?url=/library/en-us/dnnetcomp/html/PInvokeLib.asp



--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx


This posting is provided "AS IS" with no warranties, and confers no rights.
 
W

William Ryan

Geoff:

First off, excellent article(s). I've had on problem in a related vein for
a while and it's really have me stumped. Say that you wanted to allow a
user to rewind to a certain point in something that dictated and then insert
into it so that everything after that point is appened onto it. I've gotten
to the point where I can take two or more wav files and append one to the
end, but using a RW/FF function and then pausing, and allowing an inert at
that point has really stumped me. Any thoughts?

Thanks again,

Bill
 
G

Geoff Schwab [MSFT]

Hi William,

The only way I can think to do that is to store the location at which the
pause occurred, clear out the buffers with a WaveOutReset, then reconstruct
them with the inserted buffer in the stored position by queuing them up. Of
course, you would have to break the original in two pieces to do this and
make sure that you break at a spot that is aligned properly with
nBlockAlign.

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
 
W

William Ryan [eMVP]

Jeff, thanks again. How though would you find this position where you were
at after doing a RW/FF for instance?
 
G

Geoff Schwab [MSFT]

Hi William,

I may be missing your point but I am thinking you could use
waveOutGetPosition to determine how many bytes into the file you were at the
time of the pause. You could then use this information to determine where
to insert the new data. The part I am unsure of is how you could then set
the postion back to that location without hacking it i.e., increasing the
playback rate with the volume off until the position is back, or breaking
the audio into small buffers and only starting at the buffer with the new
location.

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
 
W

William Ryan [eMVP]

I have a routine that will append a wav file to another one or multiple
files to one..changing the size to match the new combination and I've played
around with inserting data into it at different intervals (I had to do this
to move back so there wouldn't be a notable pause in between the playback of
the first file and the second file). I got to that point by trial and error
just moving back until I didn't hear the pause. As such, if I knew where in
the first recording the FF/RW went to, I'm thinking I can just move back to
this point with the append files routine I already have. You've answered my
question though and I think I can get this to work. I'll let you know how
it goes...many thanks!

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top