audio API update
							parent
							
								
									f13e12010c
								
							
						
					
					
						commit
						8c8fcde3bc
					
				|  | @ -1 +1 @@ | |||
| Subproject commit ec09a5952b4b9aa16a3cf57eae34a293f4a47dac | ||||
| Subproject commit 52b60b66f43e8b20192b5cc04211a0f2a183c87d | ||||
|  | @ -38,6 +38,7 @@ namespace MoonWorksTest | |||
| 
 | ||||
|         StaticSound music; | ||||
|         StaticSoundInstance musicInstance; | ||||
|         StreamingSoundOgg musicStream; | ||||
| 
 | ||||
|         public TestGame(WindowCreateInfo windowCreateInfo, PresentMode presentMode, int targetTimestep = 60, bool debugMode = false) : base(windowCreateInfo, presentMode, targetTimestep, debugMode) | ||||
|         { | ||||
|  | @ -255,16 +256,13 @@ namespace MoonWorksTest | |||
|             screenshotBuffer = new Buffer(GraphicsDevice, 0, screenShotBufferSize); | ||||
|             screenshotThread = new Thread(new ThreadStart(SaveScreenshot)); | ||||
| 
 | ||||
|             // music = new DynamicSound(AudioDevice, new FileInfo(Path.Combine("Content", "title_screen.ogg"))); | ||||
|             music = StaticSound.LoadOgg(AudioDevice, new FileInfo(Path.Combine("Content", "title_screen.ogg"))); | ||||
|             musicInstance = music.CreateInstance(); | ||||
|             musicInstance.Pitch = -0.7f; | ||||
|             musicInstance.Pan = 0; | ||||
|             musicInstance.Reverb = 2f; | ||||
|             musicInstance.Play(); | ||||
|             // musicInstance.Play(); | ||||
| 
 | ||||
|             //music = new DynamicSound(AudioDevice, new FileInfo(Path.Combine("Content", "title_screen.ogg"))); | ||||
|             //musicInstance = music.CreateInstance(); | ||||
|             //musicInstance.Play(); | ||||
|             musicStream = StreamingSoundOgg.Load(AudioDevice, new FileInfo(Path.Combine("Content", "title_screen.ogg")), false, true); | ||||
|             musicStream.Play(); | ||||
|         } | ||||
| 
 | ||||
|         protected override void Update(double dt) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue