CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

WAV file format

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
tongbram



Joined: 27 Nov 2008
Posts: 11

View user's profile Send private message AIM Address ICQ Number

WAV file format
PostPosted: Mon Jan 05, 2009 12:34 am     Reply with quote

hi..
i m doing a project on voice recording using PIC and i have to store the recorded sound on SD card in wav file format. The sampling frequency is 8000Hz and i m using 10bit ADC. The sampled data is converted into 2:1 ADPCM using microchip's code.
Now the problem is, i want to convert it into WAV file format and store in SD card. I have already used SD card for storing data in TXT format.
Can anybody help me.........
THANK IN ADVANCE...
_________________
manibabu
John P



Joined: 17 Sep 2003
Posts: 331

View user's profile Send private message

PostPosted: Mon Jan 05, 2009 10:37 am     Reply with quote

Is this what you're looking for?

http://ccrma.stanford.edu/courses/422/projects/WaveFormat/
tongbram



Joined: 27 Nov 2008
Posts: 11

View user's profile Send private message AIM Address ICQ Number

PostPosted: Tue Jan 06, 2009 1:47 am     Reply with quote

Thanks i already visited that link....I know the Format of wave but i need source code for inserting Header particularly for PIC controller. i will appreciate if anybody share source code for similar project like this....
One think, can i implement a block of 100 byte in which 44 byte will be header and the rest 56 will be data. This is going to implement after every 56th sample right?. After implementing the block, the whole block is store in SD card in .WAV extension. My point is weather such file can be play using window media player.....i will be very thankful if anybody reply....
_________________
manibabu
magestik



Joined: 16 Oct 2008
Posts: 59

View user's profile Send private message

Re: WAV file format
PostPosted: Tue Jan 06, 2009 2:43 am     Reply with quote

tongbram wrote:
I have already used SD card for storing data in TXT format.


Hello, i'm also looking to do this, could you post your code ? Embarassed
Thanks Razz
tongbram



Joined: 27 Nov 2008
Posts: 11

View user's profile Send private message AIM Address ICQ Number

PostPosted: Tue Jan 06, 2009 4:54 am     Reply with quote

Actually i have did that part of the code using MikroC compiler. The compiler have example code on SD/MMC.
I have tried in CCS also but only for read/write in sector wise operation. Still trying using FAT in CCS.
_________________
manibabu
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group