Search Unity

Is it possible to read a computer's audio output?

Discussion in 'Scripting' started by Qwolf, Jul 30, 2014.

  1. Qwolf

    Qwolf

    Joined:
    Feb 1, 2014
    Posts:
    28
    I need to be able to get my audio output (Sound from Youtube/Pandora/Media Player) and stream it into Unity to then pass an FFT function to analyze the frequencies.
     
  2. hammil

    hammil

    Joined:
    Jun 5, 2013
    Posts:
    56
    You'll have to look into .net audio libraries - there's nothing built into Unity that does what you need. Try BASS.NET or NAudio. Be sure to consider platform independence if that's an issue for you.
     
    Qwolf likes this.
  3. Qwolf

    Qwolf

    Joined:
    Feb 1, 2014
    Posts:
    28
    NAudio looks to be the best option for what I need to do. Platform wise, it only needs to work for windows so theres no problem there.