Problems with OSS

Simon Burton simonb at webone.com.au
Sat Mar 30 18:35:35 EST 2002


um, im getting memory errors.. and some other things.
ive had a fiddle with the code aswell.
i suggest you try writing a sin wave to the device
without any threads or mallocs or wav file parsing.
(that is what i did for my first oss prog)

eg.

void
write_sin(int fd)
{
   short sample[512];
   int i;
   ...
   for(i=0;i<512;i++)
     sample[i]=sin(...) << 14;
   write(fd,sample,512)
}


/* simon
  ps. feel free to send more code */





More information about the linux mailing list