Solved

Multiple sound files appended into one large file

Posted on 2002-04-23
9
142 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now