Solved

Multiple sound files appended into one large file

Posted on 2002-04-23
9
144 Views
Last Modified: 2010-05-02
This a basic VB problem, I am trying to take multiple sound files and make it into one large sound file, Does anyone know it can be done?
The above can be achieved by Window's Sound recorder (by the inserting many files into one), but since I have a very large number of soundfiles and this activity will be performed frequently, I needed VB code solution to automate this process.
0
Comment
Question by:Navin58
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6963721
What you are trying to do specifically?
Every file has headers that describes what it does.
0
 

Author Comment

by:Navin58
ID: 6965108
Richie Simonetti:
In reponse to your comments below, please see further cooments by me
What you are trying to do specifically?
Every file has headers that describes what it does.

Navin58 Comments: I have recorded some sound bites which in total exceeds 99 files, these sound bite files each are approx not more than 25 seconds, and I wanted to concatenate these sound files so I can play them on my portable CD player. The issue are
1) My CD writing software does not write more than 99 tracks, hence the need to concatenate these sound files into several large file, (since I have 659 files I want to make them into 18 large files as I have calculate this will all fit into one CD.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6965609
oops!, there is a comment from other expert that disappeared!
Well, i don't know how to do by code, but you could concatenate the files with a simple wav editor (even windows recorder, if i am not too old ;)
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 22

Expert Comment

by:rspahitz
ID: 6966120
I'm just listening, but will offer what I've learned about wav files since I'm looking into doing something similar (but haven't had time):

Wave files have headers that define the protocol: MHz (11 or 22), channels (mono or stereo), etc.  After that comes a definition of the data.

When you merge the files, ensure that the headers are compatible, then modify the data pointers so that it recognizes the new length of the datablock, then append the new data.

Again, this is just based on my readings and I haven't tried it yet; you'll also need to know the exact header format, which I don't have available but may be somewhere on the Microsoft site or certainly somewhere on the Internet.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6966346
Well, it is necessary to be 99 files?
Could you append each after other with any wav editor?
Must be done with code?
0
 

Author Comment

by:Navin58
ID: 6967998
The reason I am looking to for a Visual Basic code solution is because:
1) I need to automate this process, as I have many situations, where I will need to perform this exercise many times in the future. As I can grow this code to include selection and editing of sound files.
2) Also I just want to know if was possible to it in VB and what the code looked like.
 
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 6969194
I don't see that it will be very difficult in VB since all you'd need to do is split a few strings and re-assemble them.

The hard part is getting exact specs on the file formats, which you won't find in the VB manuals.
When you have the format, let us know what it is and we can help you write the code if you need it.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7660726
Hi Navin58,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Refund points and save as a 0-pt PAQ.

Navin58, Please DO NOT accept this comment as an answer.
EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7755397
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question