Topic: Audio Switcher

Offline Pyromanik

  • Hero Member
  • Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!
  • Posts: 28,834
*Obligitory bumblebee reference*

Reply #100 Posted: August 20, 2013, 11:44:39 pm
Everyone needs more Bruce Campbell.

Offline Lias

  • Administrator
  • Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!
  • Posts: 3,975
Quote from: Pyromanik;1530209
*Obligitory bum xeno reference*

Fixed

Reply #101 Posted: August 22, 2013, 03:20:13 pm

Offline Krekor

  • Just settled in
  • Krekor has no influence.
  • Posts: 140
Looking forward to this.  USB Headset + 3.5mm Speakers makes this program a life-saver.

Reply #102 Posted: August 25, 2013, 01:09:25 pm
s8.Krekor
^42U^Gregor
DMZ|Gregor
NZC_Gregor

Offline Xenolightning

  • Moderator
  • Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!
  • Posts: 3,485
Quote from: Krekor;1530479
Looking forward to this.  USB Headset + 3.5mm Speakers makes this program a life-saver.

:D

Back from holiday now, so can start putting in the final touches.


Sneak preview of the new GUI:
Last Edit: August 25, 2013, 02:19:12 pm by Xenolightning

Reply #103 Posted: August 25, 2013, 02:15:52 pm
-= Sad pug is sad =-

Offline Xenolightning

  • Moderator
  • Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!
  • Posts: 3,485
After a lot of fucking around; I've moved the scripting macro language to Javascript. Mainly because there is no solid, lightweight Lua implementation for .NET 3.5. I had Lua working, but it didn't have support for loops and other shit like that.

Now I'm finalising the Javascript API, and plan to write a little documentation around the usage and set up some basic macros for hotkey switching functions. Along with this I am going to compile a command line program that exposes the Audio JS API to directly to Javascript; resulting in the flexibility of:

Code: [Select]

# asc.exe /path/to/somejsfile.js


As an extension I might expose a basic JS UI library to show notifications etc.. too.

Hoping to have a 2.0.0.0 beta1 out in a few weeks.

Considering open sourcing the whole thing, but I'd like to put it on Github, and that'd involve me learning how to git.

One of my testing macros ^_^:
Code: [Select]

var devices = getAudioDevices(1);

var game, speakers;

for (var i = 0; i < devices.length; i++) {
    console.log(devices[i].id + " - " + devices[i].name + " - " + devices[i].flags);
    if (devices[i].name == "GAME")
        game = devices[i];

    if (devices[i].name == "Speakers")
        speakers = devices[i];
}

setDefaultDevice(speakers.id);

sleep(2000);

setDefaultDevice(game.id);


For the people that like to tinker I've attached a command line app. asc.exe
Last Edit: September 04, 2013, 12:27:02 am by Xenolightning

Reply #104 Posted: September 03, 2013, 11:34:18 pm
-= Sad pug is sad =-

Offline Pyromanik

  • Hero Member
  • Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!
  • Posts: 28,834
So was that Javascript or JScript? :P

Reply #105 Posted: September 07, 2013, 12:43:51 am
Everyone needs more Bruce Campbell.

Offline Xenolightning

  • Moderator
  • Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!
  • Posts: 3,485
Scripting Engine: ECMAScript 262 version 1.5 (also known as JavaScript)

So not JScript

:)

Reply #106 Posted: September 07, 2013, 04:30:36 pm
-= Sad pug is sad =-

Offline Xenolightning

  • Moderator
  • Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!
  • Posts: 3,485
Scripting Engine: ECMAScript 262 version 1.5 (also known as JavaScript)

So not JScript

:)

Reply #107 Posted: September 07, 2013, 04:32:46 pm
-= Sad pug is sad =-

Offline Xenolightning

  • Moderator
  • Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!
  • Posts: 3,485
DDDDDDDDDDDDDOUBLE POAST.

On a slightly related note.

I created a beta app that redirects the sound from a specific process to an audio device.

https://github.com/xenolightning/AudioSwitcher.AudioApi/releases

It won't work for every application, but it's worth trying if you ever wanted this functionality :P

I've successfully done this with VLC so far :>

Reply #108 Posted: May 12, 2014, 12:36:15 pm
-= Sad pug is sad =-

Offline Xsannz

  • Addicted
  • Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!
  • Posts: 5,412
sweet, now need a mac version.. with the application specific audio streams :)  the mac has issues with audio and switching devices.

you basically have to stop all audio sources connect then disconnect then try audio again before it will switch headphones and devices.. this tool would be useful, although my understanding of macs is only from a user end point, I've never had to dev for it.

Reply #109 Posted: May 12, 2014, 02:05:48 pm

Offline Xenolightning

  • Moderator
  • Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!
  • Posts: 3,485
sweet, now need a mac version.. with the application specific audio streams :)  the mac has issues with audio and switching devices.

you basically have to stop all audio sources connect then disconnect then try audio again before it will switch headphones and devices.. this tool would be useful, although my understanding of macs is only from a user end point, I've never had to dev for it.
I don't have any issues with audio when plugging in headphones whilst using speakers.

OSX has a completely different audio system, and doesn't have the level of Hook support like Windows.

Also, I CBF with C++ and Obj-C can suck a fat one.

In short OSX can die in a hole until they create a decent language and development platform :>


Reply #110 Posted: May 12, 2014, 02:34:59 pm
-= Sad pug is sad =-

Offline Xsannz

  • Addicted
  • Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!
  • Posts: 5,412
hey hey C++ and OBJ C has it's places..  mostly in a fiery hole..

Reply #111 Posted: May 12, 2014, 02:40:33 pm

Offline Xenolightning

  • Moderator
  • Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!
  • Posts: 3,485
hey hey C++ and OBJ C has it's places..  mostly in a fiery hole..
No qualms with C++, just Objective C. I went through an online tutorial and just about vomitted.

Reply #112 Posted: May 12, 2014, 02:48:00 pm
-= Sad pug is sad =-

Offline Apostrophe Spacemonkey

  • Fuck this title in particular.

  • Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!Apostrophe Spacemonkey is awe-inspiring!
  • Posts: 19,050
All this programming talk is giving me a code boner.

Reply #113 Posted: May 12, 2014, 02:51:36 pm

Offline Lias

  • Administrator
  • Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!Lias is awe-inspiring!
  • Posts: 3,975
All this programming talk is giving me a code boner.

You need an open socket to probe..

Reply #114 Posted: May 12, 2014, 02:53:25 pm

Offline Xenolightning

  • Moderator
  • Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!
  • Posts: 3,485
All this programming talk is giving me a code boner.
Boner++

Reply #115 Posted: May 12, 2014, 03:04:21 pm
-= Sad pug is sad =-

Offline Xsannz

  • Addicted
  • Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!
  • Posts: 5,412
using GF2.0;
using Durex.Collections.Generic;
using Human.Interaction;

namespace relief_Function
{
   class Boner
   {
      static void Main(string[] args)
      {
         lube a;
         furry_hole b;
         Boner z;
         If( b != moist){ ++a}
         else

         While (z == true)
         { b + z  && b - z}

        if(z !=true){sleep}

   }//END      boner
}//END         relief_Function
Last Edit: May 12, 2014, 03:42:53 pm by Xsannz

Reply #116 Posted: May 12, 2014, 03:18:14 pm

Offline Xenolightning

  • Moderator
  • Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!
  • Posts: 3,485
Thread has reached new heights.

Reply #117 Posted: May 12, 2014, 03:38:40 pm
-= Sad pug is sad =-

Offline nevjmac

  • Just settled in
  • nevjmac has no influence.
  • Posts: 426
Another succesful adventure into the lazy life of nevjmac....


Reply #118 Posted: May 12, 2014, 05:52:30 pm

Offline Pyromanik

  • Hero Member
  • Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!Pyromanik is awe-inspiring!
  • Posts: 28,834
So here I was thinking that objective c and c sharp were the same thing.

Turns out they are (that same thing being 'shit').

OH YES I WENT THERE!

Reply #119 Posted: May 29, 2014, 08:22:44 am
Everyone needs more Bruce Campbell.

Offline Xenolightning

  • Moderator
  • Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!
  • Posts: 3,485
DDDDDDDDDDDDDOUBLE POAST.

On a slightly related note.

I created a beta app that redirects the sound from a specific process to an audio device.

https://github.com/xenolightning/AudioSwitcher.AudioApi/releases

It won't work for every application, but it's worth trying if you ever wanted this functionality :P

I've successfully done this with VLC so far :>
TFW you try this on Spotify to "sticky" it to DAC + Headphones and it works.

 8) 8) 8) 8)

Reply #120 Posted: October 07, 2014, 08:40:14 pm
-= Sad pug is sad =-

Offline Xsannz

  • Addicted
  • Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!Xsannz is awe-inspiring!
  • Posts: 5,412
i really want to write something with functionality like this for my MAC, fooking hate having to dive through the system jus to  switch audio devices
Last Edit: October 08, 2014, 07:17:45 am by Xsannz

Reply #121 Posted: October 08, 2014, 07:06:11 am

Offline Xenolightning

  • Moderator
  • Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!
  • Posts: 3,485

Reply #122 Posted: October 08, 2014, 08:37:35 am
-= Sad pug is sad =-

Offline Xenolightning

  • Moderator
  • Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!Xenolightning is awe-inspiring!
  • Posts: 3,485
Went out looking for stock photography for full page bacground images for new audio switcher website.

Decided it was easier to create my own, so I spent 30 mins taking about 100 photos.

One after PP: http://iforce.co.nz/i/swnrfkzg.qdb.jpg

Reply #123 Posted: October 08, 2014, 12:56:04 pm
-= Sad pug is sad =-

Codex

  • Guest
Sweeeeet I like

Reply #124 Posted: October 08, 2014, 01:06:35 pm