Mail Archives: djgpp/1997/10/07/20:53:07
justin deltener <deltener AT fm-net DOT com> wrote:
> I've finally got around to programming interrupts again, and i'm so DARN
> close i can taste it. I think my computer is laughing at me. Anyways
> i'm hooking up into the SB16 sound card and for the life of me i can't
> get it into auto-init mode! i'm doing the same DSP commands as i was in
> real mode, and i think the rest is correct. It will play the DMAbuffer
> once and thats it. No autoinit :-( Any ideas?
> NewSB16.pm_offset =(int)SB16_ISR;
> NewSB16.pm_selector=_go32_my_cs();
> _go32_dpmi_get_protected_mode_interrupt_vector(BLASTER.SBIntr+8,&OldSB16);
> _go32_dpmi_allocate_iret_wrapper(&NewSB16);
Wait... the Sound Blaster interrupt would be real mode, wouldn't it? So
shouldn't you use: (where rm_regs is a __dpmi_regs created previously in
the function)
_go32_dpmi_allocate_real_mode_callback_iret(&NewSB16, &rm_regs);
> _go32_dpmi_set_protected_mode_interrupt_vector(BLASTER.SBIntr+8,&NewSB16);
and
_go32_dpmi_set_real_mode_interrupt_vector(BLASTER.SBIntr+8, &NewSB16)
[snip-- other stuff looks good]
> everything is being done in the usual way, but i'll be darn if that
> stupid thing will go into autoinit!
> The new interrupt handler function does send an EOI (0x20) and it just
> isn't working for me :(
> Thanks for bothering to read this :)
HTH.
--
[- firewind -]
[- email: firewind AT metroid DOT dyn DOT ml DOT org (home), firewind AT aurdev DOT com (work) -]
[- "You're just jealous because the voices talk to -me-." -]
[- Have a good day, and enjoy your C. -]
- Raw text -