Implemented changes in new RA. Also minor exception param change.
This commit is contained in:
@@ -33,7 +33,7 @@ namespace RhythmBullet.Audio.Visualizer
|
||||
|
||||
public override void Update(GameTime gameTime)
|
||||
{
|
||||
if (disposed) throw new ObjectDisposedException(this.Name);
|
||||
if (disposed) throw new ObjectDisposedException(GetType().Name);
|
||||
UpdateBars((float)gameTime.ElapsedGameTime.TotalSeconds);
|
||||
AverageBars();
|
||||
base.Update(gameTime);
|
||||
@@ -41,7 +41,7 @@ namespace RhythmBullet.Audio.Visualizer
|
||||
|
||||
public override void Draw(SpriteBatch batch)
|
||||
{
|
||||
if (disposed) throw new ObjectDisposedException(this.Name);
|
||||
if (disposed) throw new ObjectDisposedException(GetType().Name);
|
||||
rectangleRenderer.Begin(true);
|
||||
for (int i = 0; i < BAR_COUNT; i++)
|
||||
{
|
||||
@@ -103,7 +103,7 @@ namespace RhythmBullet.Audio.Visualizer
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (disposed) throw new ObjectDisposedException(this.Name);
|
||||
if (disposed) throw new ObjectDisposedException(GetType().Name);
|
||||
Dispose(true);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user