CoderSource.net
Search
Compression/Decompression Wave File to MP3 and Vice Versa
Started by cindy_16051988 at 04-20-2006 1:13 AM. Topic has 8 replies.

Print Search « Previous Thread Next Thread »
   04-20-2006, 1:13 AM
cindy_16051988 is not online. Last active: 4/19/2006 7:04:13 AM cindy_16051988

Top 25 Posts
Joined on 04-19-2006
Posts 4
Compression/Decompression Wave File to MP3 and Vice Versa

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.


   Report 
   04-20-2006, 6:25 PM
cindy_16051988 is not online. Last active: 4/19/2006 7:04:13 AM cindy_16051988

Top 25 Posts
Joined on 04-19-2006
Posts 4
Re: Compression/Decompression Wave File to MP3 and Vice Versa
Anbody? Please

   Report 
   04-21-2006, 7:46 AM
Yasir is not online. Last active: 11/16/2006 10:02:40 AM Yasir

Top 10 Posts
Joined on 03-15-2006
Posts 44
Re: Compression/Decompression Wave File to MP3 and Vice Versa
Hi

You can obviously use the mp3 files instead of wave files that are much smaller in size as compare to wave files and the Codec of mp3 is always there on almost any computer.
However how would you call that codec or open the that file depends on the code you are using for opening the sound file and how you play it. without having view on it can not say what to do next.

Best Regards
-Yasir
   Report 
   04-23-2006, 6:06 PM
cindy_16051988 is not online. Last active: 4/19/2006 7:04:13 AM cindy_16051988

Top 25 Posts
Joined on 04-19-2006
Posts 4
Re: Compression/Decompression Wave File to MP3 and Vice Versa
Hi, Yasir, thank you very much for your reply, appreciate.

For your info, I know where should I call the codec but I just dont know what lines of codes should be added at that location to call the codec.

Could you please give me some ideas? I promise I can do as independent as possible. But, I really need guidance at this very beginning, please help, I really dont know how should I start now. Please, please

   Report 
   04-24-2006, 9:03 PM
Yasir is not online. Last active: 11/16/2006 10:02:40 AM Yasir

Top 10 Posts
Joined on 03-15-2006
Posts 44
Re: Compression/Decompression Wave File to MP3 and Vice Versa
Hi
Sorry pal i cant help with the information u provided. how ever i can still tell you the paths. you can use directx or directshow to play your mp3 files. find some good tutorial how to use these libraries.
You can have a look on this.

http://www.gamedev.net/reference/articles/article1881.ascp

Best Regards
-Yasir
   Report 
   04-25-2006, 12:55 AM
cindy_16051988 is not online. Last active: 4/19/2006 7:04:13 AM cindy_16051988

Top 25 Posts
Joined on 04-19-2006
Posts 4
Re: Compression/Decompression Wave File to MP3 and Vice Versa
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.
   Report 
   04-28-2006, 2:06 AM
zongchenzhang is not online. Last active: 4/28/2006 6:57:47 AM zongchenzhang

Top 75 Posts
Joined on 04-06-2006
Posts 1
Re: Compression/Decompression Wave File to MP3 and Vice Versa
关注中。。。
   Report 
   04-28-2006, 8:29 AM
Yasir is not online. Last active: 11/16/2006 10:02:40 AM Yasir

Top 10 Posts
Joined on 03-15-2006
Posts 44
Re: Compression/Decompression Wave File to MP3 and Vice Versa
By the way what is this????
   Report 
   05-16-2006, 11:04 PM
paddy is not online. Last active: 6/6/2006 9:46:30 AM paddy

Top 75 Posts
Joined on 05-16-2006
India ( Bombay )
Posts 1
Cool [H] Re: Compression/Decompression Wave File to MP3 and Vice Versa

Hi Cindy ,

            how r u ?  you may compress wave files externally instead of doing it programmatically . as far as i feel that would be best deal for you so if you haven't solved with your problem then just reply me back .

bye

                                                                           Reagards paddy


   Report 
Codersource.Net » Programming » C++ Programming » Compression/Decompression Wave File to MP3 and Vice Versa

MENU
Home
MFC 
C++
.Net
WIN32
Programming
Forum
My Articles
Welcome to Codersource.Net Login | Register | Faq  

Google
 

NOTES:


Thanks for visiting our CoderSource.net. This site will be improved with more articles. Interested visitors can also submit their articles through the Submit Article link.Your article will also be published after due consideration by the editor. 

© Copyright 2003. All rights on content reserved by CoderSource.net. Contact    About Us