Sound_RemoveVoice can return an error
Jon Abbott (1421) 2651 posts |
The PRM for Sounds_RemoveVoice states:
And yet the following Repro returns an error
This change in behaviour started with RISC OS 3. To resolve the exit code at line 998 in Sound0 needs changing from:
to:
|
David J. Ruck (33) 1635 posts |
As the PRM is documenting a non standard behaviour, where as the SWI is implementing a standard behaviour, wouldn’t it make more sense to change the documentation? |
André Timmermans (100) 655 posts |
I agree, there is no need to reintroduce a RISC OS 2 behaviour at this stage. |
Stuart Swales (8827) 1357 posts |
Is Sound_InstallVoice similarly no longer RISC OS 2 behaviour? They ought at least to behave the same way… |
Jon Abbott (1421) 2651 posts |
Sound_InstallVoice 1 handles errors in the same way and it was introduced in RO3, so its not strictly RO2 behaviour. I agree that its odd that this and a few other SWI’s don’t return errors in the usual way. They must have been implemented that way for a reason, although I can’t for the life of me think why. |