[colorforth] PCI Soundcard
- Subject: [colorforth] PCI Soundcard
- From: Nick Maroudas <alice@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 7 Mar 2004 23:39:33 +0200 (IST)
- Cc: Maroudas at bm <alice@xxxxxxxxxxxxxxxxx>
On 22nd & 25th Jan 2004, Nick Maroudas posted & documented a fragment of
code to r/w the AC97. Now to play a CD: add two words, cdon & masteron,
that unmute the CD and Master analog volumes, registers 12h & 2.
: mute 8808 ;
: medvol 0808 ;
: maxvol 0f0f ;
: masteron medvol mv! ;
: cd@ 12 acrd ;
: cd! 12 acwr ;
: cdon medvol cd! ;
: playcd masteron wip cdon ;
My crude delay wip (about 100 usec for 16000 empty loops - CF is fast!)
proved essential when these two successive switchons were executed in the
word playcd, but not when they were entered separately by hand.
With apologies for not yet taking up kind offers of help to post proper
colourcode.
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com