Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Compression/Decompression Wave File to MP3 and vice versa

Compression/Decompression Wave File to MP3 and vice versa

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestiontutorial
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cindy_16051988
    wrote on last edited by
    #1

    Hello, everybody. Sorry to disturb you all. Currently, I have a speech recording and playback software developed by Microsoft Visual C++ 6.0. The software is used to train children with speech problem and scores will be calculated and showed at the end of each practice session. The software is able to record and playback real-time. Children use this software at home and save their practice records in a single floppy disk. Then, children will bring the floppy disk with practice records inside when they return to our centre. There are 20 wave files that must be saved in a single floppy disk. Due to space insifficiency, one floppy disk is 1.44M in capacity. Total size of 20 wave files = 20*188k = 3,760,000 bytes Total floppy disk needed = (3,760,000)/1,440,000 = 2.6 floppy disks But, I must save all the 20 wave files into a single floppy disk Our problem is we are not able to save all 20 wave files in a single floppy disk. We cant afford a CD-RW for each child and we must use floppy disk. The solution is we have to compress the wave file to save the files in a floppy and decompress the files back to wave file in order to listen to how the children practice at home. I am totally new to this as the software is written by one of my previous friend who worked together with me in a voluntary speech rehabilitation centre. We need this software to train children in the centre. I work part time there. But, my problem is how to call any CODEC dll into correct place into my current project platform without causing any bugs? Please forgive me if I have asked a very silly question, I am sorry. After I have added the cpp and h files into my current project paltform, I dont know what should I do next. My final destination is to save all 20 wave files in a single floppy disk. I didnt restrict that I must use compression/decompression methods but I dont know what else should I use. Hope you can give me some guidances on how to do it or you please link me to pages that help me to do so. I promise I can learn as independent as possible but I really need your guidance at this very beginning, please. Please, I really appreciate all your help.

    R R C 3 Replies Last reply
    0
    • C cindy_16051988

      Hello, everybody. Sorry to disturb you all. Currently, I have a speech recording and playback software developed by Microsoft Visual C++ 6.0. The software is used to train children with speech problem and scores will be calculated and showed at the end of each practice session. The software is able to record and playback real-time. Children use this software at home and save their practice records in a single floppy disk. Then, children will bring the floppy disk with practice records inside when they return to our centre. There are 20 wave files that must be saved in a single floppy disk. Due to space insifficiency, one floppy disk is 1.44M in capacity. Total size of 20 wave files = 20*188k = 3,760,000 bytes Total floppy disk needed = (3,760,000)/1,440,000 = 2.6 floppy disks But, I must save all the 20 wave files into a single floppy disk Our problem is we are not able to save all 20 wave files in a single floppy disk. We cant afford a CD-RW for each child and we must use floppy disk. The solution is we have to compress the wave file to save the files in a floppy and decompress the files back to wave file in order to listen to how the children practice at home. I am totally new to this as the software is written by one of my previous friend who worked together with me in a voluntary speech rehabilitation centre. We need this software to train children in the centre. I work part time there. But, my problem is how to call any CODEC dll into correct place into my current project platform without causing any bugs? Please forgive me if I have asked a very silly question, I am sorry. After I have added the cpp and h files into my current project paltform, I dont know what should I do next. My final destination is to save all 20 wave files in a single floppy disk. I didnt restrict that I must use compression/decompression methods but I dont know what else should I use. Hope you can give me some guidances on how to do it or you please link me to pages that help me to do so. I promise I can learn as independent as possible but I really need your guidance at this very beginning, please. Please, I really appreciate all your help.

      R Offline
      R Offline
      Russell
      wrote on last edited by
      #2

      What about the PCM format? : Mono or stereo? 44kHz or 22kHz or less? 16bit or 8bit per sample? Could you use lees space changing this parameters without lost the quality of the voice of the childrens? If NO, could you use some compress algorithm (like zip) instead mp3? Have a nice code day ;)

      C 1 Reply Last reply
      0
      • C cindy_16051988

        Hello, everybody. Sorry to disturb you all. Currently, I have a speech recording and playback software developed by Microsoft Visual C++ 6.0. The software is used to train children with speech problem and scores will be calculated and showed at the end of each practice session. The software is able to record and playback real-time. Children use this software at home and save their practice records in a single floppy disk. Then, children will bring the floppy disk with practice records inside when they return to our centre. There are 20 wave files that must be saved in a single floppy disk. Due to space insifficiency, one floppy disk is 1.44M in capacity. Total size of 20 wave files = 20*188k = 3,760,000 bytes Total floppy disk needed = (3,760,000)/1,440,000 = 2.6 floppy disks But, I must save all the 20 wave files into a single floppy disk Our problem is we are not able to save all 20 wave files in a single floppy disk. We cant afford a CD-RW for each child and we must use floppy disk. The solution is we have to compress the wave file to save the files in a floppy and decompress the files back to wave file in order to listen to how the children practice at home. I am totally new to this as the software is written by one of my previous friend who worked together with me in a voluntary speech rehabilitation centre. We need this software to train children in the centre. I work part time there. But, my problem is how to call any CODEC dll into correct place into my current project platform without causing any bugs? Please forgive me if I have asked a very silly question, I am sorry. After I have added the cpp and h files into my current project paltform, I dont know what should I do next. My final destination is to save all 20 wave files in a single floppy disk. I didnt restrict that I must use compression/decompression methods but I dont know what else should I use. Hope you can give me some guidances on how to do it or you please link me to pages that help me to do so. I promise I can learn as independent as possible but I really need your guidance at this very beginning, please. Please, I really appreciate all your help.

        R Offline
        R Offline
        Remco Hoogenboezem
        wrote on last edited by
        #3

        Hello Cindy, I think you should read the msdn on audio compression manager. Look for the functions calls that start with acm. (e.g. acmDriverEnum) De audio compression manager features: · Transparent run-time audio compression and decompression · Waveform-audio data format selection · Waveform-audio data filter selection · Waveform-audio data format conversion · Waveform-audio data filtering You can choose any audio driver present on the current system. (I guess) Succes. :)

        C 1 Reply Last reply
        0
        • R Russell

          What about the PCM format? : Mono or stereo? 44kHz or 22kHz or less? 16bit or 8bit per sample? Could you use lees space changing this parameters without lost the quality of the voice of the childrens? If NO, could you use some compress algorithm (like zip) instead mp3? Have a nice code day ;)

          C Offline
          C Offline
          cindy_16051988
          wrote on last edited by
          #4

          Hi, _Russell_, thanks for your reply, really appreciate. I used PCM format, mono, 16kHz, 16 bits. I can use any lossy compression algorithms, and I manage to search some source codes from website, but my main problem is I dont know how to call the CODEC dll from my software. Can you please tell me how? Or if you can link me to the pages that provide details or tutorials on how to call CODEC dll from my software project platform? Please, I really need some guidance and helps at this beginning stages. I promise to learn as independent as possible, please help at this very beginning.

          1 Reply Last reply
          0
          • R Remco Hoogenboezem

            Hello Cindy, I think you should read the msdn on audio compression manager. Look for the functions calls that start with acm. (e.g. acmDriverEnum) De audio compression manager features: · Transparent run-time audio compression and decompression · Waveform-audio data format selection · Waveform-audio data filter selection · Waveform-audio data format conversion · Waveform-audio data filtering You can choose any audio driver present on the current system. (I guess) Succes. :)

            C Offline
            C Offline
            cindy_16051988
            wrote on last edited by
            #5

            Hi, Remco Hoogenboezem, thanks for your post, thanks. I have read about the 'Usings CODEC to compress wave" page in the msdn website http://msdn.microsoft.com/archive/default.asp?url=/ARCHIVE/en-us/dnarmulmed/html/msdn\_codec.asp. It talks about acm. But, unfortunately, I cant find the decompression part, I dont know where I did wrong. Sorry, please forgive me for my stupidness, I dont understand with the 5 lists in your post. YOu mean I should choose one of them to be used or? For your information, my main problem is I dont know how to call the codec dll from my software. Could you please guide me a little? Please

            1 Reply Last reply
            0
            • C cindy_16051988

              Hello, everybody. Sorry to disturb you all. Currently, I have a speech recording and playback software developed by Microsoft Visual C++ 6.0. The software is used to train children with speech problem and scores will be calculated and showed at the end of each practice session. The software is able to record and playback real-time. Children use this software at home and save their practice records in a single floppy disk. Then, children will bring the floppy disk with practice records inside when they return to our centre. There are 20 wave files that must be saved in a single floppy disk. Due to space insifficiency, one floppy disk is 1.44M in capacity. Total size of 20 wave files = 20*188k = 3,760,000 bytes Total floppy disk needed = (3,760,000)/1,440,000 = 2.6 floppy disks But, I must save all the 20 wave files into a single floppy disk Our problem is we are not able to save all 20 wave files in a single floppy disk. We cant afford a CD-RW for each child and we must use floppy disk. The solution is we have to compress the wave file to save the files in a floppy and decompress the files back to wave file in order to listen to how the children practice at home. I am totally new to this as the software is written by one of my previous friend who worked together with me in a voluntary speech rehabilitation centre. We need this software to train children in the centre. I work part time there. But, my problem is how to call any CODEC dll into correct place into my current project platform without causing any bugs? Please forgive me if I have asked a very silly question, I am sorry. After I have added the cpp and h files into my current project paltform, I dont know what should I do next. My final destination is to save all 20 wave files in a single floppy disk. I didnt restrict that I must use compression/decompression methods but I dont know what else should I use. Hope you can give me some guidances on how to do it or you please link me to pages that help me to do so. I promise I can learn as independent as possible but I really need your guidance at this very beginning, please. Please, I really appreciate all your help.

              C Offline
              C Offline
              cindy_16051988
              wrote on last edited by
              #6

              Sorry to disturb, May I ask? I was confused with the acm driver and as a newbie, I really coulndt implement it without any bug after finding the driver and doing the two conversions. I just want to call the third-party software.exe to help me do the compression and decompression part. Do I need to call the dll? Or, Can I just call the .exe from my software? Sorry for causing any confusion, I was not clear with dll before I put this thread, after I read the pdf about dll, I think that maybe I dont need to call dll but just call the exe. Please forgive me, I apologized for the trouble caused by me. Do you think it is possible to call any CODEC software exe from my software? Which one is easier for a newbie like me? But, I dont know how can I do so, do you mind to give me some guidance? Please, Please forgive me for my ignorance. I try my best in doing it. Hope you can teach me some. Please.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups