Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Saving Parts of WAV file

  1. #1
    Newbie
    Join Date
    Nov 2004
    Posts
    7

    Saving Parts of WAV file

    I was referred to this forum by KingTut. I'm writing a recording/playback system for the PC that will work with many services (currently, XM) to display song and artist info in sync. I'd like to know how to save out part of a WAV file. I'm using the MMControl, but any method would be fine. The program is in VB, but I can write a C or C++ DLL if needed. I've found some complicated code for loading and saving WAV files byte by byte, but was hoping (as always) for a shortcut.

    I'm the author of TodayPlayer for the PPC (both tiny window and big buttons), and hope to be able to do playback with artist/song info there as well.

    Oh yeah, like TodayPlayer, the software wil be free. (TodayPlayer is GPL.)

    Thanx for any info or hints!

    -MBro
    http://www.todayplayer.com

  2. #2
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    I don't understand what you are asking. Could you explain it better ?
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  3. #3
    FLAC jbors's Avatar
    Join Date
    Nov 2003
    Posts
    959
    Yeah. Weird thing. Just seek in the WAV file, get the chunk you need, create new wav header and save it back( header first . What's the problem ?
    Car pc integration with ease
    Car mediacenter

  4. #4
    Constant Bitrate Jeep's Avatar
    Join Date
    May 2004
    Location
    Sweden
    Posts
    153
    take a look at audiostudio from www.nctsoft.com

  5. #5
    Newbie
    Join Date
    Nov 2004
    Posts
    7
    Sorry about not being clear. My program uses the Windows media control to record long WAVs (e.g. overnight) while logging what it is recording (artist/song.) I also have a player that plays the WAV while displaying the list of songs. You can click on a song to play it. I want to be able to save off that song, which means extracting and saving a 3-minute segment from an 8-hour WAV.

    I was hoping the Windows multimedia control, or API, allowed this, but it looks like it can only save out the whole file. It does indeed look like I will have to access the data "raw", and "create a new wave header." Not a big deal, but I'd hate to do that and then find out it was already supported.

    I will take a look at audiostudio; thanx! However, if it is GPL, I'd prefer to stay away. My TodayPlayer is GPL, and that has turned out to be more of a pain than it is worth. I'd rather just put up my source code without all that red tape.

    --Mike

  6. #6
    Variable Bitrate HybridFox's Avatar
    Join Date
    Oct 2004
    Location
    Peterborough/Ontario/Canada
    Posts
    226
    just get the program goldwave *cough* download *cough* its the best audio editing tool i have ever used. if you really need it pm me and i will send over msn messenger.

  7. #7
    FLAC IntellaWorks's Avatar
    Join Date
    Jun 2004
    Location
    NH
    Posts
    1,173

    .

    Ok, let me get this streight.



    Long feed from XM radio, which is constantly being recorded.

    You want that audio file, to have pointers to invididual songs within that long stream of audio ???

    My question to you is: Does your recording app know when a new song is playing ??
    Progress [I will seriously never be done!]
    Via EPIA MII
    512MB RAM
    OEM GPS (embedded)
    nLite WinXP pro on
    1GB Extreme III CF card
    Carnetix 1260 startup/ DC-DC regulator
    Software: Still, re-Writing my existing front end in .Net

  8. #8
    FLAC jbors's Avatar
    Join Date
    Nov 2003
    Posts
    959
    If you owner of the code, you can change its license any time. Don't see much problem here.
    Creating sound files is simpler than you think. No need to use 'smart' DLLs or controls. Just see my tutorial http://pymedia.org/tut
    Car pc integration with ease
    Car mediacenter

  9. #9
    Newbie
    Join Date
    Nov 2004
    Posts
    7
    My question to you is: Does your recording app know when a new song is playing ??
    Yes, it does, plus or minus a few seconds.

    If you owner of the code, you can change its license any time.
    I made the mistake of using code from another GPL'ed program (in fact, one that did not mention it.) Even if I wrote my own now, I couldn't help but use what I learned from the other code. In the grand scheme of things, it's no big deal, but now with that program, it's more of a pain to do a "release" version.

    just get the program goldwave *cough* download *cough* its the best audio editing tool
    I currently use Cool Edit Pro; I was one of the first to buy it shareware. There is also Audigy, which is freeware (although buggy with large files.) I just want to automate the process.

    Oddly enough, if I knew the artist/song of some of the material I've recorded over the past 35 years, I'd have purchased many more CDs.

    Just see my tutorial http://pymedia.org/tut
    Will do.

    Thanx for the comments! And keep them coming. I won't be able to throw myself into this for a couple more days.

    -Mike

  10. #10
    FLAC IntellaWorks's Avatar
    Join Date
    Jun 2004
    Location
    NH
    Posts
    1,173

    .

    Well if your app knows a new song is comming, then have it log each song into a database with the location of the song in the grand scheme of things.

    1. song: Outkast - Hey ya position: 0 seconds
    2.song: limp bizkit - nookie position: 235 seconds



    now when a user clicks on limp bizkit, MMcontrol starts playing at 235 seconds on the big track...
    Progress [I will seriously never be done!]
    Via EPIA MII
    512MB RAM
    OEM GPS (embedded)
    nLite WinXP pro on
    1GB Extreme III CF card
    Carnetix 1260 startup/ DC-DC regulator
    Software: Still, re-Writing my existing front end in .Net

Page 1 of 2 12 LastLast

Similar Threads

  1. cant change skins???
    By Hell-Stopper in forum FrodoPlayer
    Replies: 19
    Last Post: 11-05-2004, 11:10 PM
  2. Bug Reports
    By frodobaggins in forum FrodoPlayer
    Replies: 168
    Last Post: 10-16-2004, 01:25 AM
  3. Help! File Size Larger than 4GB!
    By Rafster in forum Off Topic
    Replies: 7
    Last Post: 09-13-2004, 05:01 PM
  4. FS: Sproggy Hard to Find Parts
    By dug1967 in forum Classified Archive
    Replies: 30
    Last Post: 02-19-2004, 08:36 AM
  5. MPX Play best way to use file that have long file names ?
    By Vampyre in forum Software & Software Development
    Replies: 7
    Last Post: 09-16-2001, 03:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •