C# Class GAudio.DrawAudioModule

A simple component that draws the raw audio data ( -1 to 1 floats ) using UnityEngine's LineRenderer.
Inheritance: AGATChunkCopyClientBehaviour
ファイルを表示 Open project: gregzo/G-Audio

Public Properties

Property Type Description
handleNoMoreDataInStart bool
lineMaterial UnityEngine.Material
lineWidthStart float
startColor UnityEngine.Color
xFactor float
yFactor float

Protected Properties

Property Type Description
_lineRenderer UnityEngine.LineRenderer

Protected Methods

Method Description
HandleAudioDataUpdate ( ) : void
HandleNoMoreData ( ) : void
SetVertexCount ( ) : void
Start ( ) : void

Method Details

HandleAudioDataUpdate() protected method

protected HandleAudioDataUpdate ( ) : void
return void

HandleNoMoreData() protected method

protected HandleNoMoreData ( ) : void
return void

SetVertexCount() protected method

protected SetVertexCount ( ) : void
return void

Start() protected method

protected Start ( ) : void
return void

Property Details

_lineRenderer protected_oe property

protected LineRenderer,UnityEngine _lineRenderer
return UnityEngine.LineRenderer

handleNoMoreDataInStart public_oe property

Should HandleNoMoreData() be called in Start() ? Useful to draw a zero-state line before any data is received.
public bool handleNoMoreDataInStart
return bool

lineMaterial public_oe property

The Material used by the LineRenderer
public Material,UnityEngine lineMaterial
return UnityEngine.Material

lineWidthStart public_oe property

public float lineWidthStart
return float

startColor public_oe property

public Color,UnityEngine startColor
return UnityEngine.Color

xFactor public_oe property

X distance between two data points.
public float xFactor
return float

yFactor public_oe property

Multiplyer for translating values into y position.
public float yFactor
return float