Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Sep 1995 00:41:16 +0200 (MET DST)
From:      Alain Kalker <alain@Wit401402.student.utwente.nl>
To:        hackers@FreeBSD.ORG
Subject:   GUS users, can you please help me? (fwd)
Message-ID:  <Pine.BSF.3.91.950923002532.250A-100000@Wit401402.student.utwente.nl>

next in thread | raw e-mail | index | archive | help
Excuse me for posting about sound matters to the 'hackers' list, but I
have tried 6(!) times now to post this to the 'multimedia' list without
success (mail delivery problems).  Furthermore, the problem I have may
interest other hackers too. 

---------- Forwarded message ----------
Date: Fri, 22 Sep 1995 17:41:58 +0200 (MET DST)
From: Alain Kalker <alain@Wit401402.student.utwente.nl>
To: multimedia@star-gate.com
Subject: GUS users, can you please help me? (fwd)


While working on the sound driver, I have found the following problem:

Using a GUS (MAX), when playing back an .mp2 file in _mono_ mode, using
something like

  maplay -l <something>.mp2

there are a few garbled fragments of sound (some of which were played
previously) mixed in with the sound. After a few seconds sound plays
normal again. 

This problem has also appeared when playing stereo .mp2 files using my 
improved version of the gus_copy_from_user() function (not released yet), 
but the problem playing files in mono existed even _before_ my first patch.

Can anybody confirm this problem and, best of all, help me fix it? I 
must say I have not had this problem when I was using L...x. :-(

My present idea as to what it could be is that somehow interrupts from the
GUS are being lost or misplaced, i.e. not being serviced or serviced at
some wrong moment during the _initial_ filling of the sound driver's
buffers. 

Places where I have looked and hacked (unsuccessfully) are:

- dmabuf.c: (DMAbuf_getwrbuffer) - wait for free space,
	    (DMAbuf_outputintr)
- gus_wave.c: (gus_sampling_output_block, gus_transfer_output_block,
	       several routines called from interrupt handlers)

Thanks in advance for helping me out.

---
Alain



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.950923002532.250A-100000>