Gita Assets
Unity / Plugin

Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity]

Overview

AudioStream provides PCM audio streaming for Unity AudioSources from many sources and formats. It can stream to and from system non-default inputs and outputs plus their channels, in 3D, and access an Icecast server, and more. The asset helps with streaming from any connected system device (microphones, Line-In inputs, loopback interfaces, including ASIO on Windows) and decoding audio files and streams from the local file system and network. As a new feature it supports multiple audio listeners in a scene (based on Resonance spatialization). Please be aware that somewhat advanced knowledge of Unity audio is required and it is not aimed at novice users in general.

Key features

Built upon the FMOD Engine API, using only the low/Core level API of FMOD Studio directly where appropriate; no FMOD Studio authoring functionality is used.
Each output driver can be configured separately; on Windows ASIO support can be enabled, with customizable buffer size.
Supported audio formats are the formats and platforms FMOD recognizes (for example, on iOS and Android m4a/AAC is supported).
Aims at zero GC allocation at runtime and is suitable for long running, automatically recoverable streaming.
Network retrieval uses Unity provided UnityWebRequest, so all sensible connection scenarios it supports are available, such as secure connections, redirects, custom headers and proxies.
Supports multiple audio listeners in a scene (based on Resonance spatialization).
Can stream and play from internet radios with M3U/8 and PLS playlists, audio files hosted on the internet/cloud such as podcasts, local audio files on a regular filesystem (according to platform), non-realtime and realtime streams from network/filesystem with caching for later usage (realtime streams can optionally play back while downloading), memory locations containing encoded audio, and any connected input audio device (microphone, Line-In inputs) including multichannel ones, with broader hardware support than Unity's Microphone class, ASIO driver enabled devices on Windows, non-default devices on iOS such as AirPods, and any input/microphone directly into a spatialized Resonance AudioSource.
Can save content streamed from the network into a local disk cache for offline playback.
Can stream/push any of the above into a connected Icecast mountpoint.
Can stream between two LAN instances either Opus encoded audio up to two channels, or uncompressed AudioSource/AudioListener PCM audio.
Can play/redirect a common Unity AudioSource to other than the default system output, targeting specific channels/speakers.
Can play FMOD sounds directly on a specified output and its channels/speakers using a customized mix matrix, including multichannel audio files above 8 channels which Unity currently cannot import, either from local disk or from a network URI, using FMOD networking only (no HTTPS).
Can redirect a Unity MixerGroup to other than the default system output with reasonable latency.
Has network proxy support via UnityWebRequest.
The corresponding AudioSource can be used as usual, including Unity spatialization, effects and mixer routing, so it can be used as an AudioSource for Resonance/Oculus/Steam spatialization plugins, or any Unity Mixer in general.
Source is Unity API upgrader friendly and has no warnings once everything is set up; the package is as unobtrusive as possible, with no Editor customizations except custom inspectors.

Included content

AudioStream: can stream supported formats from networked or local filesystem sources and play them via Unity AudioSource; supports saving content into local disk cache.
AudioStreamMinimal: same as above, but plays the audio separately via FMOD, not going through the Unity audio system.
AudioStreamRuntimeImport: can download at faster than realtime playback speeds, caches decoded PCM data which can be retrieved and played back later as an AudioClip without touching the network.
AudioStreamMemory: decodes audio data stored at an IntPtr memory location and plays it as an AudioClip; can use a cache with a user identifier to retrieve it immediately later.
IcecastSource: pushes playing Unity AudioSource content encoded as uncompressed PCM, OGGOPUS, or OGGVORBIS into an opened Icecast mountpoint.
AudioSourceOutputDevice: redirects a playing Unity AudioSource to a specified/non-default system output; can perform multichannel separation of output. The demo scene shows how to play a MONO AudioClip on a selected channel of a multichannel output device.
AudioStreamInput: streams any connected input device into an AudioSource, including multichannel microphones; can open and stream from loopback devices, meaning you can capture the overall audio currently being played on the system output on standalone platforms which have loopback or are set up to be available.
AudioStreamInput2D: same as above, except optimized for latency and does not go through Unity spatialization.
AudioStreamInput_iOS: can stream from all connected devices on iOS into a Unity AudioSource, including AirPods.
ResonanceSource: positional streamed audio using the Google Resonance native plugin provided by FMOD.
ResonanceSoundfield: can play a-format and b-format ambisonics files using the Google Resonance native plugin provided by FMOD.
ResonanceInput: provides spatialized microphone input; streams any audio input similar to the AudioStreamInput components to a 3D positioned AudioSource using the Google Resonance native plugin provided by FMOD.
AudioStreamListener: can be used as a standalone audio listener for AudioStreamListenerSource components, with its own system audio output; the number of GameObjects with this component is not limited (technically the only limit now is constrained FMOD resources).
AudioStreamListenerSource: serves as source audio for AudioStreamListener, with all user adjustable Resonance 3D parameters; requires a Unity AudioSource.
AudioStreamOscSource: OSC transport for AudioStreamNetworkSource.
AudioStreamNetMQSource: NetMQ transport for AudioStreamNetworkSource. These act as a network source for client components, providing an OPUS encoded (max. 2-channel) or PCM stream over LAN.
AudioStreamOscClient: OSC transport for AudioStreamNetworkClient.
AudioStreamNetMQClient: NetMQ transport for AudioStreamNetworkClient. LAN clients for the above sources, played via a normal Unity AudioClip either 2D or spatialized.
GOAudioSaveToFile: saves audio of any AudioSource into a PCM16 WAV file.
AudioSourceCaptureBuffer: a small utility component for exposing the audio filter buffer of a game object.
MediaSourceOutputDevice: direct FMOD API playback not using the Unity audio system; an audio file can be played on any available system output, and can play multichannel audio files. Two demo scenes are included for this component.
Three simple playback channel separation components:
AudioStreamInputChannelsSeparation: splits recording channels of audio being recorded from an AudioStreamInput component into separate single channel AudioSource prefabs and instantiates them in the scene.
AudioSourceChannelsSeparation: splits audio of an AudioSource/AudioClip being played on the current Unity output into separate single channel AudioSource prefabs and instantiates them in the scene.
AudioClipChannelsSeparation: splits original channels of a multichannel AudioSource/AudioClip being played into separate single channel AudioSource prefabs and instantiates them in the scene.
AudioStreamDevice native mixer plugin:
AudioStream OutputDevice effect: redirects an AudioMixerGroup to a specified/non-default system output.
AudioStream InputDevice effect: records from a system audio input directly into an AudioMixerGroup; currently Windows only. On Windows both effects have ASIO alternatives.
A separate test/demo scene for each component/functionality; all source code is included; comprehensive install and usage guides are included in the documentation.

Compatibility

Supplied version sold on this site: 3.5.5; actual support is based on this version.
Unity 2022.3.62f3: Built-in, URP and HDRP supported.
Submitted with Unity 2022.3 LTS, mainly for the netstandard 2.1 support needed by OscCore; the rest of the sources were not extensively checked for compatibility with previous versions. Initially 5.3.5 was the recommended minimal version for mobiles, and earlier versions starting with 5.0 were OK for standalones.
Compatible with all other audio packages when using AudioSource enabled components and networked components.
Fully IL2CPP compatible including standalones (Unity 2018.1 and up).
FMOD Studio Unity Integration officially supports Android, macOS, iOS, tvOS, Metro, UWP, Windows and Linux (both x86 and x86_64) in the publicly available version, with access to the consoles version available upon request.

Requirements

Requires the FMOD Unity Integration package; agreement to the FMOD EULA is required before downloading the FMOD Unity Integration package directly from FMOD.
Somewhat advanced knowledge of Unity audio is required.
OscCore needs netstandard 2.1 support.
User modifications of generated Xcode/Android Studio projects are required; RemoteCommandCenter is not included and must be implemented by the user on iOS to get the full player experience.

Render pipeline compatibility

UnityBuilt-inURPHDRP
2022.3.62f3

Technical specifications

Original creator
Martin Cvengroš
Current official version
3.5.5
Supported engines
2022.3.62, 2022.3.62f3
Render pipelines
2022.3.62f3 · Built-in / HDRP / URP
Official file size
111.67 MB
Official update date
2026-10-16
Asset file count
315
Package format
unitypackage
First official release
2016-06-27

Tags

Full description

The asset can help you with streaming from any connected system device (microphones, Line-In inputs, loopback interfaces, including ASIO on Windows..) and decoding audio files and streams from local file system and network As new feature it supports multiple audio listeners in scene (based on Resonance spatialization, see below and online docs for details) Please be aware that somehow advanced knowledge of Unity audio is required and is not aimed at novice users in general. Please read included !!README1ST!! INITIAL IMPORT ERRORS.txt after importing the package for the first time which explains how to properly install and setup FMOD for Unity AudioStream can stream and play from: * internet radios M3U/8 and PLS playlists (+) * audio files hosted on the internet/cloud such as podcasts * local audio files on a regular filesystem (according to platform) * non realtime and realtime streams from network / filesystem with caching for later usage, realtime streams can optionally play back while downloading * memory locations containing encoded audio * any connected input audio device (Microphone, Line-In inputs) including multichannel ones * has broader HW support than Unity's Microphone class * ASIO driver enabled devices on Windows * non default devices on iOS, such as AirPods * any input/microphone directly into spatialized Resonance AudioSource Additionally it can - save content streamed from network into local disk cache for offline playback - stream/push any of the above into connected Icecast mountpoint - stream between two LAN instances either Opus encoded audio up to two channels, or uncompressed AudioSource/AudioListener PCM audio - play/redirect common Unity AudioSource to other than default system output, targeting specific channel/s/speakers - play FMOD sounds directly on specified output and its channels/speakers using customized mix matrix [FMOD sounds means audio files in all formats supported by FMOD, including multichannel ones above 8 channels which Unity currently can't import - either from local disk or from network URI, using FMOD networking only (i.e. no HTTPS)] - redirect Unity MixerGroup to other than default system output with reasonable latency (++) - has network proxy support via UnityWebRequest Unity and other assets compatibility: - compatible with all other audio packages when using AudioSource enabled, and networked components - corresponding AudioSource can be used as usual including Unity spatialization, effecting and mixer routing - this means it can be used as AudioSource for e.g. Resonance/Oculus/Steam spatialization plugins, or any Unity Mixer in general (+++) - fully IL2CPP compatible including standalones (Unity 2018.1 and up) - has no PM dependencies on other optional Unity packages, not even builtin UGUI or TextMeshPro - please be aware that the asset does not support WebGL Included Documentation contains comprehensive install and usage guides such as building and recording on iOS, basic support for mobile background audio modes (++++), considerations regarding Unity latency modes and DSP buffer settings, setting up Icecast source and mountpoint and each relevant setting is fully documented in the Editor via e.g. member fields tooltips. Runs almost on all platforms Unity currently has audio support for (+++++), at the time being tested on Windows, macOS and mobiles - iOS and Android. There is a separate test/demo scene for each component/functionality and all source code is included. Source is Unity API upgrader friendly (i.e. should not trigger any automatic source upgrades) and has no warnings once everything is set up. * The whole package is as much unobtrusive as possible, there are no Editor customizations, except custom inspectors. The asset is built upon FMOD Engine API and with all its source available it's also a good example on how to work with FMOD Engine and Unity in general - please note that no FMOD Studio functionality is used, however. ––––––––––––––––––––––––––– Uses FMOD Studio by Firelight Technologies NOTE: Agreement to FMOD EULA is required before downloading the FMOD Unity Intergration package directly from FMOD (they have very friendly indie policy though). In general the asset should work with latest official FMOD release, either from the Asset Store, or from (Unity Verified is recommended, though not necessarily required) ––––––––––––––––––––––––––– Submitted with 2022.3 LTS Unity version mainly for netstandard 2.1 support needed by OscCore the rest of sources are not checked for compatibility with previous versions extensively, but initially 5.3.5 was recommended minimal version for mobiles, and earlier versions starting with 5.0 were OK for standalones. see LICENSE for each asset used in the demo ––––––––––––––––––––––––––– (+) Please note that M3U/8 support is currently limited to nonrecursive, nonchunked, direct streams only (in other words HLS is not supported). does not provide tags support for Icecast/SHOUTcast sources (++) Unity AudioMixer native plugin is currently built for 64- and 32-bit Windows and macOS, sources are included (+++) Unity Mixer works with all components, except AudioSourceOutputDevice (redirection to non default device and multichannel output separation) (++++) User modifications of generated Xcode/Android Studio projects are required based on freely available information on the internet / e.g. RemoteCommandCenter is not included and must be implemented by user on iOS to get full player experience /, Android support is limited (+++++) FMOD Studio Unity Integration officially has support for Android, macOS, iOS, tvOS, Metro, UWP, Windows and Linux (both x86 and x86_64) in publicly available version, with access to consoles version available upon request. Please note that FMOD functionality required by this asset is not currently supported on WebGL due to - for now - missing threading support.

For streaming and access to audio devices only the low/Core level API of FMOD Studio is used directly where appropriate (please note that no authoring FMOD Studio functionality is used) - each output driver can be configured separately, on Windows ASIO support can be enabled, with customizable buffer size - for list of supported audio formats please see formats and platforms FMOD recognizes (see e.g. Wikipedia or FMOD Documentation, for example on iOS and Android m4a/AAC is supported). It aims at zero GC allocation at runtime and is suitable for long running automatically recoverable streaming. For network retrieval is used Unity provided UnityWebRequest - that means all sensible connection scenarios such as secure connections, redirects, custom headers and proxies,... supported by it are available now. Note: being streaming oriented it does not provide typical offline audio processing such as advanced audio clip offline signal manipulation - these are reserved for Unity AudioClip where appropriate. List of included components (note they are all in the demo builds): AudioStream - can stream supported formats from networked or local filesystem sources and play it via Unity AudioSource; supports saving content into local disk cache AudioStreamMinimal - same as above, but plays the audio saparately via FMOD, not going through Unity audio system. AudioStreamRuntimeImport - can download at faster than realtime playback speeds, caches decoded PCM data which can be retrieved and played back later as an AudioClip without touching the network AudioStreamMemory - decodes audio data stored at IntPtr memory location and plays them as an AudioClip, can use cache with user identifier to retrieve immediately later IcecastSource - pushes playing Unity AudioSource content encoded as uncompressed PCM, OGGOPUS, or OGGVORBIS into opened Icecast mountpoint AudioSourceOutputDevice - redirects playing Unity AudioSource to specified/non default system output - can perform multichannel separation of output, demo scene shows how to play a MONO AudioClip on selected channel of multichannel output device AudioStreamInput - streams any connected input device into an AudioSource including multichannel microphones - can open and stream from [loopback] devices meaning you can e.g. capture currently being played overall audio on system output on standalone platforms (which have loopback or are setup to be available) AudioStreamInput2D - same as above, except is optimized for latency and doesn't go through Unity spatialization AudioStreamInput_iOS - can stream from all connected devices on iOS into an Unity AudioSource, including e.g. AirPods ResonanceSource - positional streamed audio using FMOD's provided Google Resonance native plugin ResonanceSoundfield - can play a- and b- format ambisonics files using FMOD's provided Google Resonance native plugin ResonanceInput - provides spatialized microphone input - streams any audio input similar to AudioStreamInput components to 3D positioned AudioSource using FMOD's provided Google Resonance native plugin AudioStreamListener - can be used as standalone audio listener for AudioStreamListenerSource(s), with its own system audio output and number of GameObjects with this components is not limited (technically there is only limit now because of constrained FMOD resources) AudioStreamListenerSource - serves as source audio for AudioStreamListener, with all user adjustable Resonance 3D parameters, requires Unity AudioSource, AudioStreamOscSource - OSC transport for AudioStreamNetworkSource AudioStreamNetMQSource - NetMQ transport for AudioStreamNetworkSource - these act as network source for client components providing OPUS encoded (max. 2-channels) or PCM stream over LAN AudioStreamOscClient - OSC transport for AudioStreamNetworkClient AudioStreamNetMQClient - NetMQ transport for AudioStreamNetworkClient - LAN clients for the above sources which are played via normal Unity AudioClip either 2D or spatialized GOAudioSaveToFile - saves audio of any AudioSource into a PCM16 WAV file AudioSourceCaptureBuffer - small utility component for exposing audio filter buffer of a game object MediaSourceOutputDevice - direct FMOD API playback not using Unity audio system - an audio file can be played on any available system output, and can play multichannel audio files - two demo scenes are included for this component three simple playback channels separating components for AudioSource, AudioClip and AudioStreamInput: AudioStreamInputChannelsSeparation - splits recording channels of audio being recorded from an AudioStreamInput* into separate single channel AudioSources prefabs and instantiates them in the scene AudioSourceChannelsSeparation - splits audio of an AudioSource/AudioClip being played on current Unity output into separate single channel AudioSources prefabs and instantiates them in the scene AudioClipChannelsSeparation - splits original channels of (a multichannel) AudioSource/AudioClip being played into separate single channel AudioSources prefabs and instantiates them in the scene AudioStreamDevice native mixer plugin: AudioStream OutputDevice effect - redirects AudioMixerGroup to specified/non default system output AudioStream InputDevice effect* - records from a system audio input directly into AudioMixerGroup * currently Windows only - on Windows both above effects have ASIO alternatives

Ratings and reviews

You can rate and review this item after purchase.

No buyer reviews yet.

Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 3Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 4Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 5Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 6Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 7Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 8Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 9Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 10Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 11Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 12Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 13Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 14Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 15Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 16Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 17Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 18Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 19Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 20Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 21Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 22Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 23Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 24Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 25Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 26Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 27Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 28Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 29Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 30Unity AudioStream PCM Audio for Unity 3.5.5 Includes Audio Plug-In Updates | AudioStream [PCM audio for Unity] · Unity Plugin · Preview 31
Contact support