Mixing wav files using C programming

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crouchy8
    New Member
    • Mar 2008
    • 3

    #1

    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
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    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.

    Comment

    • crouchy8
      New Member
      • Mar 2008
      • 3

      #3
      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.

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        Originally posted by crouchy8
        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

        Comment

        • crouchy8
          New Member
          • Mar 2008
          • 3

          #5
          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

          Comment

          • sicarie
            Recognized Expert Specialist
            • Nov 2006
            • 4677

            #6
            Originally posted by crouchy8
            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.

            Comment

            Working...