Displaying 1 result from an estimated 1 matches for "strm_buf".
Did you mean:
strbuf
2012 May 27
1
Thread Problem.
...m.
-Note: I can't exactly send all the music code, but if you need to see more
let me know.
To start it off the main function for the music thread looks like this:
void ReadStrmData()
{
// Switch buffer page
char *buf;
if(strm.bufPage == 0)
{
buf = strm_buf;
strm.bufPage = 1;
}
else
{
buf = strm_buf + /*STRM_BUF_PAGESIZE*/4096;
strm.bufPage = 0;
}
long total_bytes_read = 0;
while(total_bytes_read < /*STRM_BUF_PAGESIZE*/4096)
{
int dummy;...