Hello fellow programmers,
I have a new problem? In my previous posts I was trying to build an audio recorder, to encode in a small file format. Since the posts, I have been able to accomplish the addition of the recording and playback functionality to my application using WMEncoder and WMPlayer. There is one thing that I am lacking and cannot seem to find out how to do using those 2 SDK's. The recorder basically has to duplicate a tape recorder. I can record using the Encoder. I can rewind and fast forward using the player. But if I want to rewind to a certain spot and then record beginning at that position, what would I use??????? How would I do it???????? Just a point in the right direction would be most helpful.
perhaps copy everything you have up to the desired point into a new file and begin adding to that file. the old one could then be deleted and you dont have to worry about overwrite (this could also simplify implementation for an "undo" feature if you keep the origional file).
That still leave the problem of how do I begin adding to the end of a wma file using the wmencoder and wmplayer?????? I have searched and have not found an object yet that implements a method to append to a media file?????? Unless I am just missing it???????????
> That still leave the problem of how do I begin adding to the end of a wma file using the wmencoder and wmplayer??????
yeah, that part i have no idea about. i was just suggesting a kind of generic design solution. implementation details are beyond me, sorry!
you could try putting raw byte data of the original into a (Memory)Stream and use the same method to append raw byte date of the second part to the first part.
The System.IO.FileStream class implements an Append option. that might be the way to go.
I appreciate the replies. I will look into them. Sorry I have not replied sooner, my wife and I just got out of the hospital from having our baby boy. So I am just now getting back to the computer.
Thanks for the help,
Congrats with the little one! :)
I appreciate it,
This is number 2 for us,
No number 3.............2 is enough.