Description:
Limit sound to Debug builds for now.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r470:e8820be9623e -

@@ -43,7 +43,9
43 43 private MouseState mousePrev = new MouseState();
44 44
45 45 private SpriteBatch batch;
46 #if DEBUG
46 47 private SoundEffect sound;
48 #endif
47 49 private SpriteFont monoFont;
48 50 private SpriteFont largeMonoFont;
49 51
@@ -185,7 +187,9
185 187 // Create the batch...
186 188 batch = new SpriteBatch(GraphicsDevice);
187 189
190 #if DEBUG
188 191 sound = Content.Load<SoundEffect>("FNASound");
192 #endif
189 193 Tile.TileSetTexture = Content.Load<Texture2D>(@"part4_tileset");
190 194 var texture = Content.Load<Texture2D>(@"solid_tileset");
191 195
@@ -396,7 +400,9
396 400 protected override void UnloadContent()
397 401 {
398 402 batch.Dispose();
403 #if DEBUG
399 404 sound.Dispose();
405 #endif
400 406 Tile.TileSetTexture.Dispose();
401 407 Logging.Success("Disposed of Tile texture.");
402 408 if (Quad.PixelTexture != null)
@@ -485,12 +491,14
485 491 #region input
486 492 //
487 493 #region misc_keys
494 #if DEBUG
488 495 if (keyboardCur.IsKeyDown(Keys.OemBackslash)
489 496 && keyboardPrev.IsKeyUp(Keys.OemBackslash)
490 497 && keyboardCur.IsKeyDown(Keys.LeftShift))
491 498 {
492 499 sound.Play(volume, pitch, pan);
493 500 }
501 #endif
494 502 if (keyboardCur.IsKeyDown(Keys.V) && keyboardPrev.IsKeyUp(Keys.V))
495 503 {
496 504 // debugWindow.swap();
You need to be logged in to leave comments. Login now