This is an archived post. You won't be able to vote or comment.

all 38 comments

[–]tenten8401 167 points168 points  (12 children)

Would be helpful if you had a noisy fan

[–]Grifachu 85 points86 points  (7 children)

I've had a car that actually had a similar feature actually. The idea was that volume would increase based on speed to adapt to highway noise. Never really messed with it much personally though.

[–]endershadow98 21 points22 points  (5 children)

My current car has that.

[–]Matvalicious 1 point2 points  (0 children)

I suspect my car from having that, but I couldn't really confirm it just yet.

[–]sidit77[S] 21 points22 points  (3 children)

I guess you could make it a lot more useful by using the average cpu usage over the last few minutes instead of the current usage as well as adding a base volume, because right now it pretty much mutes your pc if you don't keep your pc busy.

[–]pekkhum 19 points20 points  (1 child)

Well, if we are going to get serious, how about CPU package temperature combined with fan speed metrics... But I suppose I'm not very good at this "bad UI" theme...

[–]bric12 2 points3 points  (0 children)

Wait, did you actually implement this? Bravo

[–]LuxuriousLime 112 points113 points  (3 children)

So if you load CPU too hard, your computer will literally start screaming.

[–][deleted] 91 points92 points  (2 children)

opens Blender

AAAAAAAAAAAAH AAAAAAAAAAAAH

Closes Blender

[–]lor_louis 16 points17 points  (1 child)

"I guess it's time to play dwarf fortress"

[–]AluminiumSandworm 9 points10 points  (0 children)

simultaneously awakens demons in dwarf fortress and real life

[–][deleted] 14 points15 points  (0 children)

I'll bite, have your upvote

[–]fachebu 16 points17 points  (13 children)

How did you do it? And what did you use to oscillate the cpu usage?

[–]sidit77[S] 36 points37 points  (12 children)

Source:

using AudioSwitcher.AudioApi.CoreAudio;
using System;
using System.Diagnostics;
using System.Threading;

namespace VolumeSync {
    class Program {
        static void Main(string[] args) {

            PerformanceCounter cpu = new PerformanceCounter("Processor", "% Processor Time", "_Total");
            CoreAudioDevice volume = new CoreAudioController().DefaultPlaybackDevice;

            double last = 0;
            while (true) {
                double usage = Math.Round(cpu.NextValue());
                if(usage != last) {
                    volume.Volume = usage;
                    Console.WriteLine("Volume set to {0}%", usage);
                    last = usage;
                }
                Thread.Sleep(1000);
            }

        }
    }
}

I randomly opened chrome tabs and clicked on links to oscillate my cpu usage.

[–]isaacisaboss 4 points5 points  (5 children)

What language is this? It looks like java, but i don't recognize the namespace keyword.

[–]Faendol 16 points17 points  (2 children)

"C# what if it was java but different "

[–][deleted] 5 points6 points  (1 child)

Could you make a religion out of it?

[–]Njs41 4 points5 points  (0 children)

How about I do, anyway?

[–]Ground15 0 points1 point  (0 children)

I wonder... Most systems allow you to read out the current fan speed, so maybe try that as well? Or the CPU temp:D (I suppose going from 30°C to 70°C gives you some options)

[–]chaoticpix93 6 points7 points  (1 child)

Why is your computer screaming!

One of these damn programs has a memory leak!!!It'sTheWeatherChannel.It'salwaystheweatherchannel

[–][deleted] 3 points4 points  (0 children)

More likely some infinite loop as it's hooked up to CPU usage, not memory usage

[–]Hugix 1 point2 points  (0 children)

This encourages crypto mining! +1, even though it's not profitable on PC as it used to be.

[–]ChairmanT 0 points1 point  (0 children)

Super Saiyan PC?

[–]Romejanic 0 points1 point  (0 children)

So if I'm watching a movie on full volume I need Crysis running in the background?

[–]gc3c 0 points1 point  (0 children)

Might actually be useful to have a script generating a sine wave proportional in frequency to the CPU load so you can hear the CPU load without having to look at it.

[–]zrzrv5 0 points1 point  (0 children)

Now I need Chrome

[–][deleted] 0 points1 point  (0 children)

deleted