User Profile
Collapse
-
You should really include your code.. You are probably compiling as c and not C++ -
C++ Reading in 16bit Audio File - data size not correct
I'm attempting to read in .wav files, however, whenever I try to read in a 16Bit audio file, the "data" chunk size is not correct, however, for an 8bit file it is correct. The code is below:
...Code:#pragma pack(push, 1) struct s_riff_hdr { char id[4]; uint32_t size; char type[4]; }; struct s_chunk_hdr { char -
Don't understand why you have this. Wouldn't it just be:Code:$open_data = connect_dbase("login");
OR put your sql as:Code:connect_dbase("login");
mmmCode:$query = mysql_query("SELECT * FROM users WHERE userid = '$username'", $open_data); $rows = mysql_numrows($query);Leave a comment:
-
I think your problem is your connection file. Try requiring it rather than including it. Also, make sure the details are correct. Tested it and it works fine on my server.Leave a comment:
No activity results to display
Show More
Leave a comment: