Search found 13 matches

by Zigon
Fri 2017-03-24 23:30
Forum: Microcontroller Software
Topic: VS1003 WAV recording
Replies: 24
Views: 6533

Re: VS1003 WAV recording

Hi
I had a feeling it was something like that, just didn't know how to change it correctly :)
Thanks for all your help, its much appreciated :)
You guys do an awesome job

Thanks again, Zigon
by Zigon
Fri 2017-03-24 8:21
Forum: Microcontroller Software
Topic: VS1003 WAV recording
Replies: 24
Views: 6533

Re: VS1003 WAV recording

Quick update :) If i use line in input, it records sorta, file size is pretty big for how long it records, also only windows media will play it sorta of, groove music just gives up on it. I am guessing my file headers are still kinda off a bit :( UPDATE again :) so i if i change the header to sound ...
by Zigon
Thu 2017-03-23 22:34
Forum: Microcontroller Software
Topic: VS1003 WAV recording
Replies: 24
Views: 6533

Re: VS1003 WAV recording

Hi i fixed all that, the file size if now divisible by 512 http://i.imgur.com/67RtmIA.png windows media will play it, starts like haly war through though, but all it is is very low nothing Theres the recording RECORD1.WAV possibly something i am setting in the registers before recording? //Set sampl...
by Zigon
Thu 2017-03-23 9:05
Forum: Microcontroller Software
Topic: VS1003 WAV recording
Replies: 24
Views: 6533

Re: VS1003 WAV recording

Quick update http://i.imgur.com/WYxbfLA.png I got the header updating correctly as far as i know, Heres the new code //Used to record sound to a wav file void VS1003::wavRecord() { File record; const unsigned char RIFFHeader0[] = { 'R' , 'I' , 'F' , 'F' , // Chunk ID (RIFF) 0x70, 0x70, 0x70, 0x70, /...
by Zigon
Wed 2017-03-22 23:15
Forum: Microcontroller Software
Topic: VS1003 WAV recording
Replies: 24
Views: 6533

Re: VS1003 WAV recording

Hi congratulations on your 1000th post :D So tried recording and it doesn't play at all, just comes up with an error I am guessing its because i am not writing to the whole 4 bytes http://i.imgur.com/Hwfg9uX.png Heres a link to the file through my onedrive https://1drv.ms/u/s!Ank4msXJY_jqgbdQcAGODBX...
by Zigon
Wed 2017-03-22 9:58
Forum: Microcontroller Software
Topic: VS1003 WAV recording
Replies: 24
Views: 6533

Re: VS1003 WAV recording

So for my header i need to calculate ("RIFF" header chunk) 0x70, 0x70, 0x70, 0x70, // Chunk payload size (calculate after rec!) ("fact" header chunk) 0xff, 0xff, 0xff, 0xff // Number of Samples (calculate after rec!) ("data" header chunk) 0x70, 0x70, 0x70, 0x70 // Chunk payload size (calculate after...
by Zigon
Wed 2017-03-22 9:12
Forum: Microcontroller Software
Topic: VS1003 WAV recording
Replies: 24
Views: 6533

Re: VS1003 WAV recording

Hi I tested your new code and i think it working :) finally! :D sorry bout have bad code to start with http://i.imgur.com/Ieg5bAJ.png I tried then to wav record, i can play the file till the player gives an error, but all it has is minimal white noise, guessing it probably cos i didn't properly set ...
by Zigon
Tue 2017-03-21 13:13
Forum: Microcontroller Software
Topic: VS1003 WAV recording
Replies: 24
Views: 6533

Re: VS1003 WAV recording

Q1, no i didn't check them all,I did now and found something weird, probably an issue i would say :? http://i.imgur.com/JVPHSgf.png That was only a small test range, I am doing a full test now of all 65536 values int can range from -32,768 to 32,767 I changed dataToRead to uint16_t instead of int, a...
by Zigon
Mon 2017-03-20 23:30
Forum: Microcontroller Software
Topic: VS1003 WAV recording
Replies: 24
Views: 6533

Re: VS1003 WAV recording

After changing the readRegister code, and testing, the test worked fine :) thanks :D http://i.imgur.com/AuUEqOz.png After trying the record test again i still get a lot of negative data and it becomes positive in short bursts which is weird http://i.imgur.com/JgvJmPJ.png When i play the file it has ...
by Zigon
Mon 2017-03-20 9:41
Forum: Microcontroller Software
Topic: VS1003 WAV recording
Replies: 24
Views: 6533

Re: VS1003 WAV recording

As far i know my readResgister function works as when i read the version bit it returns the correct bits, I am using example code for the readRegister function, i am assuming it should be good, assuming probably isn't a good idea :P //Read the 16-bit value of a VS10xx register unsigned int VS1003::r...