The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
Does anything else play audio, or is it just Opera?
In Chrome, sites are / can be muted by default - is it possible that Opera has just caught up to that? Try right clicking the tab and see if there is an "unmute site" option.
Have you checked which audio output is in use? Mine recently switched from USB (headphones) to jack (soundbar) for no obvious reason (though I suspect the cat did it because I wasn't giving him food when he wanted it) which confused me until I switched it back.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
Does anything else play audio, or is it just Opera?
Other audio applications work; Goldwave is perfect. Microsoft Edge plays the exact same video clips (same URL and everything) just fine.
Opera just went silent in the past 24 hours for reasons I don't know.
n Chrome, sites are / can be muted by default - is it possible that Opera has just caught up to that? Try right clicking the tab and see if there is an "unmute site" option.
Oh boy, using your question as a prompt/inspiration, I used the Opera Help thing (I think) and asked about "Sound"
How do I fix video playback issues - image, video or sound doesn’t work or works badly?:
That usually indicates a GPU problem. Check the drivers for your graphics card. You can also try enabling or disabling the Hardware Acceleration function. Go to Settings > Advanced > Browser > System and enable Use hardware acceleration when available.
With another Link that I can click to, "...Read more about crashes and issues..."
I am highly suspicious that this would be barking up the wrong tree, as everything was okay 36 hours ago
Mine recently switched from USB (headphones) to jack (soundbar) for no obvious reason
Was that opera ? I could not find the anything about USB headphones over here
Does the volume mixer show Opera at the same level as the rest of the programs?
You fixed it.
Of course, I had to use my Super-IQ-Genius brain to find the mixer in the first place; honestly, I do not remember how I made it appear on my screen. Thank you Microsoft for adding yet another IQ test obfuscation to make things idiotically more difficult.
Whatever, whatever, I now advocate David O'Neil for president of the USA
I originally targeted C++17 but the Arduino toolchain did not have a new enough GCC version to support it. I had to fork it a bit to support C++14.
One reason was a massive function that is computed 90% at compile time down to a very few asm instructions. Which depend on how you call it which is why there's several pages of code.
What it does is convert one pixel format to another, including doing things like grayscale or HSV conversion.
The trouble with C++14 is it couldn't do the entire function at compile time. With C++17 the compiler can run the function so if the color value is constant there is no runtime overhead for doing the conversion.
The bottom line is a bit of a performance win since this function is used all over the place for virtually every drawing operation. If the user passes in a constant color value, which is typical, the conversions no longer require any runtime overhead!
Gosh that's neat, and one of the reasons I love C++ so much, and every version keeps allowing the compiler to compute more and more during the compile phase. It's actually kind of amazing how much you can get it to do. I joke that the C++ compiler will make your bed. There's no other language like it.
Feeling pretty good about all this. It's deeply satisfying.
Here's something C++17 can do at compile time if all input values are known at that point:
constint CVACC = (sizeof(int) >2) ? 1024 : 128; /* Adaptive accuracy for both 16-/32-bit systems */// destination color model is RGB
using trindexR = typename PixelTypeRhs::template channel_index_by_name<channel_name::R>;
using trchR = typename PixelTypeRhs::template channel_by_index_unchecked<trindexR::value>;
using trindexG = typename PixelTypeRhs::template channel_index_by_name<channel_name::G>;
using trchG = typename PixelTypeRhs::template channel_by_index_unchecked<trindexG::value>;
using trindexB = typename PixelTypeRhs::template channel_index_by_name<channel_name::B>;
using trchB = typename PixelTypeRhs::template channel_by_index_unchecked<trindexB::value>;
constauto chY = uint8_t(source.template channelr_unchecked<chiY>()*255);
constauto chCb = uint8_t(source.template channelr_unchecked<chiCb>()*255);
constauto chCr = uint8_t(source.template channelr_unchecked<chiCr>()*255);
constint cBA = chCb-128;
constint cRA = chCr-128;
constauto cnR = (uint8_t)helpers::clamp((int)(chY + ((int)(1.402 * CVACC) * cRA) / (float)CVACC),0,255);
constauto cnG = (uint8_t)helpers::clamp((int)(chY - ((int)(0.344 * CVACC) * cBA + (int)(0.714 * CVACC) * cRA) / (float)CVACC),0,255);
constauto cnB = (uint8_t)helpers::clamp((int)(chY + ((int)(1.772 * CVACC) * cBA) / (float)CVACC),0,255);
constauto r = typename trchR::int_type(cnR*(trchR::scale/255.0));
constauto g = typename trchG::int_type(cnG*(trchG::scale/255.0));
constauto b = typename trchB::int_type(cnB*(trchB::scale/255.0));
good = true;
Just amazing. There's actually compile time computed bit shifts to get and set channel values behind that mess. *shaking my head*. It's incredible.
I am reminded of a quote attributed to David Gries[^] of Cornell.
Never put off to runtime what you can do at compile time.
I had the pleasure, ca 1982, of attending a University of Wollongong Summer School where Gries was one of the presenters. He pretty much ran us through his book "The Science of Programming", about the mathematical proof of algorithms - loop invariants, progress, termination conditions etc.
And yes, the title of the book is a light hearted reference to Knuth.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
Last Visit: 31-Dec-99 18:00 Last Update: 19-Aug-22 10:41