08 February 2023, 09:53 | #1 |
Registered User
Join Date: May 2022
Location: Adelaide, South Australia, Australia
Posts: 208
|
Schedule an interrupt upon IO completion
I'm making an app where it needs to play audio and display graphics, near-constantly, at the same time.
The graphics just need their MainLoop()function to be called often enough and they'll work, the audio is double buffered so it only needs action once the audio is complete, but that action needs to be near instant. How do I schedule an interrupt to occur once the audio's IO request completes? |
08 February 2023, 13:35 | #2 | |
Registered User
Join Date: Apr 2018
Location: Stockholm / Sweden
Posts: 129
|
Quote:
If you use CreatePort() to create the reply port then it will allocate a task signal and set PA_SIGNAL for you (https://github.com/noname22/NeoDICE/...b/createport.c). If you want to use PA_SOFTINT instead I think you will have to create the reply port yourself. |
|
08 February 2023, 15:00 | #3 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,231
|
Maybe to clarify this a bit: An audio IOrequest completes once the audio device could successfully load your request into the hardware. That is, it completes when the sample you requested starts playing - not when it ends playing it. Otherwise, what Niklas said is correct of course. Signals are usually easier to handle than the interrupt business.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bootblock completion function | hop | Coders. System | 15 | 05 June 2022 13:07 |
Blitter interrupt during VERTB interrupt | phx | Coders. Asm / Hardware | 38 | 01 October 2021 19:54 |
Tab Completion in AmigaDOS | robotriot | support.Apps | 5 | 04 January 2019 12:33 |
New release schedule | Cassiel | project.TOSEC (amiga only) | 11 | 19 July 2012 22:20 |
EMPL Schedule | TCD | EAB's competition | 5 | 05 June 2009 10:38 |
|
|