🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.dsp
Article #1813

Re: Sun audio device buffering

#1813
From: Dan Frankowski
Date: Thu, 19 Nov 1992 23:06
19 lines
1189 bytes
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
Technical Details
Message-ID: <dfrankow.722214389@deca>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!deca!dfrankow
References: <dfrankow.722200575@peca>

Show Full Headers
Complete Article Headers
Newsgroups: comp.dsp,comp.multimedia,comp.speech
Path: arc1-ca.pugleaf.net!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