Prog in a Task Window
Colin Ferris (399) 1814 posts |
When running a Prog in a Task Window does the RO Internet Calls work the same as in Windows? ie not stopping the machine while awaiting for a reply. |
Dave Higton (1515) 3525 posts |
I think it may depend on how the prog is written. Sockets block unless they are explicitly set non-blocking. |
Bill Antonia (2466) 130 posts |
Non blocking sockets work fine, I’ve used them in my Inetd application which I wrote some years ago. |
David J. Ruck (33) 1635 posts |
There is an socket option you can use to be able to blocking sockets in TaskWindows (so an upcall is used to yield), but it works pretty badly and makes the machine crawl, so it’s best to use non blocking, and that means a lot of jumping through hoops in a RISC OS application compared to what you do everywhere else. |
Colin Ferris (399) 1814 posts |
Hmm – do a ‘Rick’ and run the Prog as a single task. It’s a Morse over the Internet Prog – if I can find it – written in ‘C’. It’s a simpler version of the main CWCom Prog. It would have been nice if I could have found out what is being sent Out / Received over the Internet – bit above my pay grade :-( |
Rick Murray (539) 13840 posts |
Task windows aren’t a magic solution. They make a lot work, but… some stuff… is harder.
Hmm, now that’s dedication for you. Sorry, I meant: - .... .- - .. ... -.. . -.. .. -.-. .- - .. --- -. ..-. --- .-. -.-- --- ..- .-.-.-
Well, you’re running it single-tasking right? Well, in that case if you have the sources you just need to look for where it is doing the sending and/or the receiving, and paste in something like |
Rick Murray (539) 13840 posts |
Hmm, playing with the settings at https://morsecode.world/international/translator.html I can hear up to 15kHz, but I suspect the main problem here might be the ability of my phone to actually reproduce these frequencies. Edit: Heh, the amplifier via Bluetooth tops out at around 12,500Hz. I’d try with the headphone jack but, well, this phone doesn’t have one. That being said, I’m not sure I’d particularly miss above 15kHz. It gave me a weird feeling like I used to get when I turned my monitor on in the morning, which kind of made me feel nauseous until it warmed up. I’d often turn it on and then go make a cuppa. Hmm, tea, that’s what I need right now. |
David J. Ruck (33) 1635 posts |
What’s this 15KHz that you speak of? There’s nothing north of about 7KHz for me these days, but it does mean I can get the computer to make noises I can’t hear that annoy the children anywhere in the house, and the wife if she is close enough. |
Rick Murray (539) 13840 posts |
Okay, I can hear 15kHz when played on my other phone through the amplifier to full size speakers, but the phone struggles to reproduce this frequency (search YouTube for a channel called “Beeps, Chirps, and Noise”). I cannot hear 16kHz, though while it’s probably my ears I wonder if there are hardware factors involved in here too.
Eh? That’s A8 on a piano (just a few notes up from the end of a lower-priced 61 key piano). If you have a MIDI keyboard and my USB MIDI module: Speaking of which… SYS "MIDI_TxProgramChange", 14 : REM Music box SYS "MIDI_TxNoteOn", 117, 80 : REM A8
Seems that male hearing drops off fairly rapidly with age, while female hearing rather less so. Is this a gender thing, or is it simply because men tend to be more exposed to louder noises? |
Colin Ferris (399) 1814 posts |
Just hope that the Drucklets don’t find out that pulling out this plug – stops that horrible noise :-) |
Clive Semmens (2335) 3276 posts |
I just ran a frequency sweep test. I’m 73, but I didn’t top out until 14kHz. At which point it’s indistinguishable from my tinnitus. I found this hearing test interesting: https://www.resound.com/en-gb/online-hearing-test – it tests how well you can pick out words against background noise. The test gave me no problems, 100% right answers. But it uses non-meaningful background noise, whereas I know for a fact that meaningful background noise gives me problems. |
David Feugey (2125) 2709 posts |
15 kHz: sorry, but at 40+ you probably only hear harmonics :) |
David Feugey (2125) 2709 posts |
So you’re a bat (or a dog). |
Clive Semmens (2335) 3276 posts |
See my post just above yours. I can tell it’s not harmonics, because the rising pitch is discernibly rising the whole time. When you’re hearing harmonics, the pitch seems to drop and then rise again at intervals. Edit: No, I’m not a bat or a dog. I’m just a very lucky man – in this one respect, if no other! The sweep test I did starts lower than any I’ve tried before. I can hear right down to about 30Hz, which I found interesting. Below that I can hear little noises, but not a real tone, and I think they’re just spurious noises generated by the computer trying to make tones it can’t actually do, or can’t do cleanly. |
Stuart Swales (8827) 1357 posts |
Clearly never been to a Motorhead gig then to thoroughly ruin your hearing for later life! I did have a proper test at 40 and could still discern 16kHz, but not now (60); more like 11.5. |
Clive Semmens (2335) 3276 posts |
Indeed not. A few classical concerts, and one Pink Floyd gig in my late teens. I do have good ear protection that I always use when I’m using power tools… |
Steve Pampling (1551) 8170 posts |
They came along after the noise level limitations came in1 although I’ve been told of ways their fans increased their personal volume2 which sound all too believable. 1 In the books as loudest band in 1972 was Deep Purple. The Who in 1976 was recorded as 126. The unverified Motorhead level was claimed to be 130 dB and “ten dB louder than the Who” – can’t be both. 2 I think sticking your head into the bass bins is a tad extreme. |
Rick Murray (539) 13840 posts |
I would imagine the Drucklets understand that removing random plugs is not conducive to their well-being.
At 40, 15kHz should be possible for the average adult. This drops to around 12kHz for the average 50 year old. But, again, this depends upon how well one treats their ears, genetic factors, illnesses, etc etc. So it’s a little unusual that, a few months off 50, I can still hear 15kHz, but it’s not that unusual. It’s not like “oh, I’m pregnant”.
Well, given that I’m kind of a failed goth, my little black heart beats in the night amongst the cobwebs.
Gig = Crowd = People (many plural) = Nope. I’d love to go to Hellfest (Nightwish, Epica, Sabaton, etc etc) and it’s only 100km(ish) away in that pretty town that mom and I used to go shopping often.
Towards the end of my days as a carer, I was dragged to some sort of club in Camberley. They caught up with me, and we had a lovely meal in some sort of pub that had a lot of candles and no background musak. Much better. |
Matthew Phillips (473) 721 posts |
Coincidentally I happen to know that the creator of that site owned an Archimedes for a while. I think I still have his set of the RISC OS 2 PRMs somewhere. |