C Board  

Go Back   C Board > General Programming Boards > C# Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-19-2003, 11:54 AM   #1
Registered User
 
Join Date: Feb 2003
Posts: 184
Audio

Hello fellow programmers,
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   Reply With Quote
Old 06-19-2003, 12:00 PM   #2
Crazy Fool
 
Perspective's Avatar
 
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   Reply With Quote
Old 06-20-2003, 07:29 AM   #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   Reply With Quote
Old 06-20-2003, 10:58 AM   #4
Crazy Fool
 
Perspective's Avatar
 
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   Reply With Quote
Old 06-20-2003, 05:28 PM   #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   Reply With Quote
Old 06-26-2003, 07:35 AM   #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   Reply With Quote
Old 06-26-2003, 08:08 AM   #7
Registered User
 
Join Date: Jun 2003
Posts: 4
Congrats with the little one!
JTeeuwen is offline   Reply With Quote
Old 06-26-2003, 08:11 AM   #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   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 06:04 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22