home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.dsp:2603 comp.multimedia:3449 comp.speech:277
- Newsgroups: comp.dsp,comp.multimedia,comp.speech
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!deca!dfrankow
- From: dfrankow@deca.cs.umn.edu (Dan Frankowski)
- Subject: Re: Sun audio device buffering
- Message-ID: <dfrankow.722214389@deca>
- Sender: news@news2.cis.umn.edu (Usenet News Administration)
- Nntp-Posting-Host: deca.cs.umn.edu
- Organization: University of Minnesota
- References: <dfrankow.722200575@peca>
- Date: Thu, 19 Nov 1992 23:06:29 GMT
- Lines: 19
-
- In <dfrankow.722200575@peca> dfrankow@peca.cs.umn.edu (Dan Frankowski) writes:
-
- >Sorry to waste bandwidth, but I don't know the proper place to post
- >this question.
-
- >count = read(record_fd, sound_bytes_ptr, sound_bytes_left);
-
- >.. and sound_bytes_left is usually 800.
-
- Argh! Typo! s_b_l is usually 8000. This is essentially the call:
-
- count = read(fd, buf, 8000);
-
- Sometimes it gives less than 8000. No problem, since it only has the
- sound since I last asked it. The problem is that it only gives me
- 1024 bytes, or 2048, or 3072, or 4096, etc. It holds anything less
- than 1K to itself. I want to get all the data, even if it's less than 1K.
-
- Dan
-