Mail Archives: djgpp/1999/05/26/05:56:09
Whew, you will need hardware interrupts. As example, if you wanna use
a SoundBlaster card you will have to hook your own SB-IRQ. Its number
is usually 5, I think. The interrupt handler should be built like
this:
SB_Int_Handler
{
Play_Data_In_Buffer1;
Load_New_Data_In_Buffer2;
Swap_The_Buffer_Pointers;
}
The idea is to play previously loaded data, and while playing,
loading the following data. So there's no delay between the
transfers.
> From: Michael Burian <michael DOT burian AT sbg DOT at>
> Subject: HELP! sound processing(line,mic) w/ Allegro ?
> Date sent: Sat, 22 May 1999 14:06:07 +0200
> Organization: UTA Telekom AG
> To: djgpp AT delorie DOT com
> Send reply to: djgpp AT delorie DOT com
> After playing sound streams I'd need to know how to record sound data
> (16 bit /44.1kHz /stereo).
> What I'd wanna do is:
> input => processing => output.
>
> this should be done in REALTIME!
> (latency_time =< 1/44100 second)
>
> anyone out there who can help me?
>
>
>
Carlos Rafael Giani, student of the T.G.M in Vienna
During holidays or weekends use this email-address:
darkvale AT fcmail DOT com
"Its not a bug, its an undocumented feature!"
- Raw text -