Board index » delphi » SB interrupt handling

SB interrupt handling

Hi ALL,
Could someone give me some ideas about how to
set up my own SB interrupt routine, run playback DMA
transfer (say, PCM 8-bit) and detect when this transfer
is done. That's be very great, if you also can create
little example (in BP). Thanks.  :)

WBR,
Andrew.
E-mail: b...@obninsk.ru

 

Re:SB interrupt handling


On 19 May 1998 16:39:14 GMT, Andrew  wrote:

Quote
> Hi ALL,
> Could someone give me some ideas about how to
> set up my own SB interrupt routine, run playback DMA
> transfer (say, PCM 8-bit) and detect when this transfer
> is done. That's be very great, if you also can create
> little example (in BP). Thanks.  :)

Andrew,

Creative Labs distribute a Soundblaster Hardware Programmers Guide, you
should find it on their website under the name of sbhwpg.exe. This
contains documentation and an example to do what you want.

This program (dmaw.c) will be fine if you want to play 8-bit samples and
your card is on an interrupt <8 . If you want to play 16-bit samples on
higher inerrupts and you have an SB16 then the code may need patching.

Colin

Re:SB interrupt handling


Quote
> On 19 May 1998 16:39:14 GMT, Andrew  wrote:
> > Hi ALL,
> > Could someone give me some ideas about how to
> > set up my own SB interrupt routine, run playback DMA
> > transfer (say, PCM 8-bit) and detect when this transfer
> > is done. That's be very great, if you also can create
> > little example (in BP). Thanks.  :)

I've got only example at
www.fazek.sulinet.hu/~turbo/download/downloae.html

This is a similar WAV play, but you can see how to use SB.
It can play 8 and 16 bit WAV file.

I hope you can use!

Bye: Turbo
tu...@fazek.sulinet.hu

Other Threads