I got around this by editing the matlab wavwrite function so it pulls data from your harddrive using memmap instead of variables stored on the RAM, then saving it as a new function. I had the same issue with running out of memory while writing large wav files in matlab. but I just did this for myself and wanted to put the solution out there! Printf ("ERROR: Failed to seek on seekable file: %s\n", Rewrite_header (FILE * out, unsigned int written) Printf ("ERROR: Failed to write wav header: %s\n", strerror (errno)) Int bytespersec = channels * samplerate * bits / 8 int samplerate = 44100 //change this to 48000 Write_prelim_header (FILE * out, int channels, int samplerate) Unsigned char headbuf /* The whole buffer */ Interesting, I have found a bug on stackoverflow parse of code, it dont support the \ character at the end of the line like you see below, sad //stolen from OGG Vorbis pcm to wav conversion rountines, sorry
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |