AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
*     R0 =     Sample's handle
*     R0     Preserved
     R1 !     poll word

New in version 1.20

This is more useful than THSound_ChannelInUse for multitasking programs. Before playing a sample you can set the pollword to 0, and it will be altered when the sample finishes playing or is interrupted by being detached from its channel. Therefore you can use PollWordNonZero Wimp events to receive notification.

If the sample finishes playing without being interrupted, -1 or &FFFFFFFF will be written to the pollword, otherwise another non-zero value will be written.

[sh-index] Back to list of manuals