home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / dsp / 2603 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.2 KB

  1. Xref: sparky comp.dsp:2603 comp.multimedia:3449 comp.speech:277
  2. Newsgroups: comp.dsp,comp.multimedia,comp.speech
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!deca!dfrankow
  4. From: dfrankow@deca.cs.umn.edu (Dan Frankowski)
  5. Subject: Re: Sun audio device buffering
  6. Message-ID: <dfrankow.722214389@deca>
  7. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  8. Nntp-Posting-Host: deca.cs.umn.edu
  9. Organization: University of Minnesota
  10. References: <dfrankow.722200575@peca>
  11. Date: Thu, 19 Nov 1992 23:06:29 GMT
  12. Lines: 19
  13.  
  14. In <dfrankow.722200575@peca> dfrankow@peca.cs.umn.edu (Dan Frankowski) writes:
  15.  
  16. >Sorry to waste bandwidth, but I don't know the proper place to post
  17. >this question.
  18.  
  19. >count = read(record_fd, sound_bytes_ptr, sound_bytes_left);
  20.  
  21. >.. and sound_bytes_left is usually 800.
  22.  
  23. Argh!  Typo!  s_b_l is usually 8000.  This is essentially the call:
  24.  
  25. count = read(fd, buf, 8000);
  26.  
  27. Sometimes it gives less than 8000.  No problem, since it only has the
  28. sound since I last asked it.  The problem is that it only gives me
  29. 1024 bytes, or 2048, or 3072, or 4096, etc.  It holds anything less
  30. than 1K to itself.  I want to get all the data, even if it's less than 1K.
  31.  
  32. Dan
  33.