Audio

This is a discussion on Audio within the C# Programming forums, part of the General Programming Boards category; Hello fellow programmers, Again, I have a new problem? In my previous posts I was trying to build an audio ...

  1. #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

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    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).

  3. #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

  4. #4
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    > 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!

  5. #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.

  6. #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

  7. #7
    Registered User
    Join Date
    Jun 2003
    Posts
    4
    Congrats with the little one!

  8. #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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Audio Programming
    By dwalters in forum Tech Board
    Replies: 0
    Last Post: 02-07-2008, 04:20 PM
  2. Audio Drivers
    By Tonto in forum Tech Board
    Replies: 8
    Last Post: 08-30-2006, 10:07 PM
  3. audio programming (from scratch)
    By simpleid in forum C Programming
    Replies: 6
    Last Post: 07-26-2006, 10:32 AM
  4. Bluetooth Audio Stream
    By Charmy in forum Windows Programming
    Replies: 2
    Last Post: 05-06-2006, 01:10 AM
  5. Port Audio
    By samGwilliam in forum Windows Programming
    Replies: 9
    Last Post: 12-07-2005, 11:43 AM

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