Desktop Volume Control
DownUnderROUser (1587) 127 posts |
Is there a way to control the volume in RISC OS apart from going into the Configure section |
David Feugey (2125) 2709 posts |
IntSound: |
Bryan (8467) 468 posts |
crashes (undefined in struction) when `I try to run it on a Pi4 |
Steve Pampling (1551) 8172 posts |
I think you need to give a little more feedback on the error message so that people can identify where the failing instruction is located in the RunImage file. I know it doesn’t work on RPCEmu (SWI 50002 not found) – it really ought to have some RMEnsure element in the Run to stop it before that point. |
Bryan (8467) 468 posts |
I thought of that but I can’t copy anything out of the error box. try |
andym (447) 473 posts |
Volume from Adrian Lees MIGHT work – worth a try? |
David Feugey (2125) 2709 posts |
Did you try to PatchSWP it? |
DownUnderROUser (1587) 127 posts |
Thank you all. Running RO 5.27 from RISC OS Direct on RPI Zero and Zero w (interchange seemlessley) – RPI Zero has a hat which has 2 x standard type A USB ports and a network port – RPI Zero W uses a Ugreen USB to network port adapater – both work well. The RPI Zero w is working with a Lapdock 100 and next step is to fit it inside the case. (Posted this using Netsurf on the RPI Zero via Tight VNC on a Windows 10 Desktop – ie running the RPI Zero headless using Jeffery’s VNC server) |
DownUnderROUser (1587) 127 posts |
thanks for deleting my triple post previously with a bit more use it appears IntSound does cause some issues – the menu functions on taskbar icons do not work – ie the menu flashes open for an instant but immediately closes – at a speed where nothing is selectable – can still press ctr-shft-F12 to restart but that is about it – appears to prevent netsurf from working too (ie screen didn’t refresh after hitting save to previous reply) it did let me control volume when viewing the demo video ‘tears of steel’ on the RO Direct distribution – which sparked the initial query – so seems to work when consuming content but not when using/configuring the system – so I’ll remove it from system startup and only use when needed. Would be a good item to include in Packman – perhaps with an update when patched for RPI 4…. |
DownUnderROUser (1587) 127 posts |
strange Volume from Adrian works alongside IntSound now too – more investigation required |
jim lesurf (2082) 1438 posts |
If you don’t already have it, !SoundCheck from here http://www.audiomisc.co.uk/software/index.html may help as it lists all the current settings, etc Have you tried *Volume? |
Raik (463) 2061 posts |
I normally use Mixer (filebase) but the download link is broken and it not works on all new hardware. |
Paul Sprangers (346) 525 posts |
None of the suggestions above did the job completely, if at all, on my 4té2. The simple volume app that I wrote myself, making use of |
Jean-Michel BRUCK (3009) 362 posts |
Hi, I almost forgot !MixVolume is available at the same place as Intsound (see above) |
Paul Sprangers (346) 525 posts |
IntSound generates an “Internal error: undefined instruction at &00009B84”, followed by a “Post mortem requested” and a lot of numbers. However, !MixVolume works very nicely on the same setup, also with the MPEG files. According to the !Help file, this is done by means of the Sound_Volume call. I wonder why it doesn’t work with my program then. Could it be that mine is written in BASIC? One little request: I’d like to see the slider opened above the iconbar icon, just like the iconbar menu. But above all, thank you for such an invaluable little utility. |
Jean-Michel BRUCK (3009) 362 posts |
@Paul IntSound allows you to adjust the MixVolume and the Sound volume (0-127) The address of the error “Internal error: undefined instruction at &00009B84”, occurs in the program. |
Paul Sprangers (346) 525 posts |
That’s not the most convenient solution (apologise my criticism), because now I have to move the pointer to the close icon in order to remove the fader window. In the previous version I just had to click the iconbar icon again – more convenient in case of a simple check. I can’t find any documentation about the SoundCtrl_GetMix and -SetMix calls. Are they Toolbox SWi’s?
IntSound crashes here at launch. Its error report is displayed in the most primitive window (I can’t describe it well, but you’ll probably recognise it). A Toolbox module may very well be missing, as the error dump speaks of an ‘unknown procedure’ and an ‘anonymous function’. As I never used the Toolbox myself, I’ve no idea what module could be missing. |
Jean-Michel BRUCK (3009) 362 posts |
Now the Fader window is opened just above the iconbar, It is more convenient. |
Paul Sprangers (346) 525 posts |
Nearly! When for some reason the icon moves, for example because of another application being loaded, the fader window keeps opening at the original location. Preferably, the program should check the position of iconbar icon at every mouse click, just as for the iconbar menu.
That’s indeed an newer StrongHelp file than I had. Thank you.
Those modules appear to be resident on my computer too. But perhaps some of them are too old? On the other hand, MixVolume works nicely, so probably it’s something at the Pi side… |
Jean-Michel BRUCK (3009) 362 posts |
I found applications that change the position of the !MixVolume icon on the iconbar, it is fixed : You can test soundcontrol with the *MixVolume command. !IntSound
Your Qté is recent and the ToolBox has not yet evolved. so you must be up to date. The crash occurs at the same address 0×9B84 as Bryan on his Pi4… I uploaded the !IntSound program recompiled with the latest DDE, for testing. |
Paul Sprangers (346) 525 posts |
Both IntSound and MixVolume now work perfectly. Thank you very much! As an aside, I just can’t get a handle on the Get- and SetMix commands, as I fail to understand what the channel indices refer to. Unfortunately, the OS StrongHelp files don’t give a clue. |
Jean-Michel BRUCK (3009) 362 posts |
good news, maybe an evolution in the DDE for the Pi4? In my program the index of SWIs is left at zero. It may be the voice index. speculation… |
Jean-Michel BRUCK (3009) 362 posts |
I found the answer for the MixVolume SWI in the ROSS document, thanks to Jim Lesurf. |
DownUnderROUser (1587) 127 posts |
Well – thank you all – MixVolume 0.03 (14 Oct 2022) did the trick and can control desktop volume with a slider control on the RPiZeroW running RO5.28 on a Motorola Lapdock base. |