Exporting To My Database
Posted: Wed Jul 20, 2011 6:58 pm
Hi There,
I have a problem with exporting my WAV files to a database (mysql). I have created a version of Audacity which allows me to Export and Import from my Mysql database, and when I first save my "New" audio (WAV file) to my Database it works fine. Or it appears to because I can clear the track (hitting the X) and reload from the database what I saved and it sounds right. Looks right. Then, when I try to
Re-Export the track to my database it gets corrupted. So works the first time, but doesn't work after that. Maybe there is something going on in my load from the database pointers and/or the project is corrupted? Just weird that it plays fine and looks fine.
Seems to be using the exact same Export call it used to write it the first time....
The file size is usually about the same (sometimes exactly the same), but the file itself has missing end-of-line markers (sometimes it has NO end of line markers). The re-imported file is just dead air (straight line). It's the correct length though.
Anyone have an ideas what could do this. I orignially though it may be a format issue (44100 and 16 Bit PCM), but that seems to be the correct format when it reads it from the database, at least the labels DO match.
I did notice that when it writes it (the first time included), I do get something about exporting the entire project as WAV (Microsoft)...
but again it seems to read it fine the first time.
Tons of differences (#if defines) in the code when you are in the MAC environment as opposed to Windows, and I am porting this from my windows version which works fine, so I am thinking there is a mismatch happening somehow.....
I have a problem with exporting my WAV files to a database (mysql). I have created a version of Audacity which allows me to Export and Import from my Mysql database, and when I first save my "New" audio (WAV file) to my Database it works fine. Or it appears to because I can clear the track (hitting the X) and reload from the database what I saved and it sounds right. Looks right. Then, when I try to
Re-Export the track to my database it gets corrupted. So works the first time, but doesn't work after that. Maybe there is something going on in my load from the database pointers and/or the project is corrupted? Just weird that it plays fine and looks fine.
Seems to be using the exact same Export call it used to write it the first time....
The file size is usually about the same (sometimes exactly the same), but the file itself has missing end-of-line markers (sometimes it has NO end of line markers). The re-imported file is just dead air (straight line). It's the correct length though.
Anyone have an ideas what could do this. I orignially though it may be a format issue (44100 and 16 Bit PCM), but that seems to be the correct format when it reads it from the database, at least the labels DO match.
I did notice that when it writes it (the first time included), I do get something about exporting the entire project as WAV (Microsoft)...
but again it seems to read it fine the first time.
Tons of differences (#if defines) in the code when you are in the MAC environment as opposed to Windows, and I am porting this from my windows version which works fine, so I am thinking there is a mismatch happening somehow.....