Results 1 to 3 of 3
  1. #1
    phil128 is offline Member
    Join Date
    Sep 2008
    Posts
    40
    Rep Power
    0

    Default Concatenating 2 or more WAV files.

    Hi. I'm writing a program and I'd like to know what type of buffer would allow me to write to it, and grows dynamically.

    I'm look to solve the problem where I have 2 or more WAV files, and when I store them into my buffer I can write them to file. Currently I'm using threads, so using a simple write() won't help (I think it stops the current thread from doing anything).

    Really need some help with this :-(

  2. #2
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    The question is a bit vague, as I'm not sure whether you are trying to use a single buffer to concatinate files, or if you just want a container to hold multiple WAVs.

    As far as containers go, you've got lot's of choices, but a jav.util.Vector is probably the best suited.

    If you're trying to write a bunch of things to a single output file, a java.nio.ByteBuffer will grow as necessary, and can be used later on to persist to a file.

  3. #3
    phil128 is offline Member
    Join Date
    Sep 2008
    Posts
    40
    Rep Power
    0

    Default

    yeah im trying to concatenate a series of wav files, and when I decide too write the contents from the buffer to a wav file

Similar Threads

  1. Replies: 8
    Last Post: 07-30-2010, 06:47 PM
  2. import from dsv files and export to csv files
    By 10x2 in forum New To Java
    Replies: 12
    Last Post: 04-30-2010, 12:56 PM
  3. working with files (text files)
    By itaipee in forum New To Java
    Replies: 1
    Last Post: 02-24-2009, 12:38 PM
  4. Behaving text files like binary files
    By Farzaneh in forum New To Java
    Replies: 2
    Last Post: 08-27-2008, 04:20 PM
  5. how to convert mpeg files to .wav files
    By christina in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 05:14 AM

Posting Permissions

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