![]() |
| | #1 |
| Registered User Join Date: Feb 2003
Posts: 184
| Audio Again, 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. Thanks everyone, Kendal |
| gvector1 is offline | |
| | #2 |
| Crazy Fool Join Date: Jan 2003 Location: Canada
Posts: 2,596
| 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). |
| Perspective is offline | |
| | #3 |
| Registered User Join Date: Feb 2003
Posts: 184
| 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??????????? Thanks, Kendal |
| gvector1 is offline | |
| | #4 |
| Crazy Fool Join Date: Jan 2003 Location: Canada
Posts: 2,596
| > 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! |
| Perspective is offline | |
| | #5 |
| Registered User Join Date: Jun 2003
Posts: 4
| 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. |
| JTeeuwen is offline | |
| | #6 |
| Registered User Join Date: Feb 2003
Posts: 184
| 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, Kendal |
| gvector1 is offline | |
| | #7 |
| Registered User Join Date: Jun 2003
Posts: 4
| Congrats with the little one! |
| JTeeuwen is offline | |
| | #8 |
| Registered User Join Date: Feb 2003
Posts: 184
| Thank you, I appreciate it, This is number 2 for us, No number 3.............2 is enough. |
| gvector1 is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Audio Programming | dwalters | Tech Board | 0 | 02-07-2008 04:20 PM |
| Audio Drivers | Tonto | Tech Board | 8 | 08-30-2006 09:07 PM |
| audio programming (from scratch) | simpleid | C Programming | 6 | 07-26-2006 09:32 AM |
| Bluetooth Audio Stream | Charmy | Windows Programming | 2 | 05-06-2006 12:10 AM |
| Port Audio | samGwilliam | Windows Programming | 9 | 12-07-2005 11:43 AM |