473,396 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Mixing wav files using C programming

Hi,

I could really do with someone's help because I'm a mere novice with C programming. I have only been programming for a few weeks so this is almost alien to me......

I'm looking to write an audio effects Visual C++ ANSI C program which mixes two audio wav files together. The program should operate in a DOS console, and request the input files, percentage mix and output file name.

The filetype is considered to be an 8 - bit mono.

I'm looking to make this code as simple as possible, could someone please get me back to me as soon as possible with some code stating how to do this. If you're not able to provide code could you please give me some advice on where I could gain such information from
Mar 25 '08 #1
5 3818
weaknessforcats
9,208 Expert Mod 8TB
I would start by writing a program that can ask for two text file names and then call a function that merges the two files.

Then replace that merge function with the one that does the mix on the audio files. I assume you know the format of the .WAV files and the mixing rules.
Mar 26 '08 #2
Hello Everybody,

Does anyone have any ideas on some code for the project I talk about. Please could someone get back to me a.s.a.p.
Apr 2 '08 #3
sicarie
4,677 Expert Mod 4TB
Hello Everybody,

Does anyone have any ideas on some code for the project I talk about. Please could someone get back to me a.s.a.p.
Weaknessforcats has pointed you in the right direction. If you wish to ignore one of the most knowledgeable posters on this site, you will receive this response:

The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

Then when you are ready post a new question in this thread.

MODERATOR
Apr 2 '08 #4
Thank you,

I wasn't saying I wasn't grateful for the help but it's just that I don't really know how to program.
Thanks for both your help
Apr 2 '08 #5
sicarie
4,677 Expert Mod 4TB
Thank you,

I wasn't saying I wasn't grateful for the help but it's just that I don't really know how to program.
Thanks for both your help
Then you need to say that and not ignore someone - especially not a Moderator, and especially not the post prolific poster in the C/C++ Forum.

So this is how you can find a good C Tutorial, and likewise this is how you can find a good C File IO tutorial to do wfc's first step.

He also pointed out that you need to be aware of .wav format and standards, so .... (if you couldn't guess by now from the other two links) I'd recommend Google searching that. This will be a lot of reading but it is not an impossible task.
Apr 2 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Hugh Cowan | last post by:
Hello, I don't program full-time (anymore), but I do try and stay on-top of the latest technologies and like most are always trying to upgrade my skills and remain current (as much as is...
4
by: Rudolf | last post by:
Is it possible to add a vb.net source code module to a c# project and if so how? Thanks Rudolf
0
by: kaalus | last post by:
Hello I have problem mixing managed and unmanaged C++ code in VS.NET 2003. I want to create a windows forms application which uses some C++ code that is incompatible with managed extensions...
4
by: Cristian Tota | last post by:
Hi, I'd appreciate any thoughts on mixing C++ and C code. I have a project that uses a given C interface, the rest of the project can be either in C or C++. What would be the recomended design...
3
by: jason | last post by:
I've been working with C# for over a year now without touching vb.net code. I had a few light years of vb.net before that. No real vb6 or windows form experience. Suddenly, I have an assignment...
1
by: AlwaysPerplexed | last post by:
Hi, I'm somewhat stuck and could really appreciate some help. I'm writing a little program using the OpenCV libraries, I started this as a Win32 Console Application and everything worked fine. I...
3
by: rewtedesco | last post by:
I bet that others came across this problem and that there is a very good general solution, however I have not been able to get this done. In short: How to replace std::cout by something that...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
1
by: smileprince00 | last post by:
hi friends, i am new learner of this sql server 2008.my question is if my primary data file i.e .mdf is restricted to certain amount of memory like 100mb..i have some more secondary data files.i.e...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.