Implemented changes in new RA. Also minor exception param change.

This commit is contained in:
2019-03-13 13:33:05 -05:00
parent 03f1bdee7b
commit f7aa272d76
5 changed files with 190 additions and 145 deletions

View File

@@ -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);
}