AlloyVisualizer 1.0.0
dotnet add package AlloyVisualizer --version 1.0.0
NuGet\Install-Package AlloyVisualizer -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AlloyVisualizer" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AlloyVisualizer --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AlloyVisualizer, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AlloyVisualizer as a Cake Addin #addin nuget:?package=AlloyVisualizer&version=1.0.0 // Install AlloyVisualizer as a Cake Tool #tool nuget:?package=AlloyVisualizer&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Alloy Android Visualizer
Find me on Nuget as AlloyVisualizer
Usage
Add the following to your plaforms/android/AndroidManifest.xml
<application android:allowAudioPlaybackCapture="true"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
Add the namespace to your xaml
xmlns:controls="clr-namespace:AlloyVisualizer.Controls;assembly=AlloyVisualizer"
Add the control to your xaml
<controls:AlloyVisualizerControl />
Customizing settings
<controls:AlloyVisualizerControl UseAndroidAudio="True"
SamsungSupport="False"
Renderers="{Binding Renderers}"
Source="" />
Add a custom audio source
<controls:AlloyVisualizerControl>
<controls:AlloyVisualizerControl.Source>
<core:UriAudioSource Uri="https://some.mp3" />
</controls:AlloyVisualizerControl.Source>
</controls:AlloyVisualizerControl>
Adding Individual Renderers
Renderers = new List<List<IRenderer>>()
{
new List<IRenderer>() { new ColumnarType1Renderer() { GapRatio = 0.1f, Radius = 10f, HalfHeight = 0f, DataType = DataType.WAVE } }
};
Adding Multiple Renderers
Renderers = new List<List<IRenderer>>()
{
new List<IRenderer>() { new ColumnarType1Renderer() { GapRatio = 0.1f, Radius = 10f, HalfHeight = 0f, DataType = DataType.WAVE } },
new List<IRenderer>() { new ColumnarType1Renderer() { GapRatio = 0.1f, Radius = 10f, HalfHeight = 0f, DataType = DataType.WAVE } },
new List<IRenderer>() { new ColumnarType1Renderer() { GapRatio = 0.1f, Radius = 10f, HalfHeight = 0f, DataType = DataType.WAVE } }
};
Adding Mixed Renderers
Renderers = new List<List<IRenderer>>()
{
new List<IRenderer>(){
new CircleRenderer() { Divisions = 6, Modulation = 1, Amplification = 1, Aggressive = 0.5f, ModulationStrength = 0.4f },
new CircleBarRenderer() { Divisions = 8, Modulation = 2, Amplification = 1, Aggressive = 0.4f, ModulationStrength = 0.4f, DataType = DataType.WAVE },
new LineRenderer() { ChangeColors = true, Color = Android.Graphics.Color.ParseColor("#cfa9d0fd"), FlashColor = Android.Graphics.Color.ParseColor("#FF6600"), Amplitude = 0.5f, DataType = DataType.WAVE }
},
};
Settings Descriptions
- UseAndroidAudio (bool) - Listen to the system audio. If your device supports 0 as the session ID that will work right away. If you have to use SamsungSupport this requires using a BroadcastReceiver in your app to listen for the OPEN_AUDIO_EFFECT_CONTROL_SESSION events.
- SamsungSupport (bool) - If you have a device where passing 0 to the visualizer as the audio session does not work (error -3) try using true for this property.
- Renderers - A list of renderers to use for visuals
- Source - The source for the media player that is used. If you are not listening to system audio you can play media using the built in player.
Methods Descriptions
- .Play(); - Plays/Listens
- .Pause(); - Pauses the visualizer and media player
- .ChangeStyle() - Moves to the next style in the list
- .ChangeAudioSession() - Sets a specific audio session ID
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0-android33.0 is compatible. net8.0-android was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0-android33.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 229 | 1/18/2023 |