示例#1
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);
            font = Content.Load<SpriteFont>("Fonts/Default");

            var waveFileStream = TitleContainer.OpenStream(@"Content\Sounds\48K16BSLoop.wav");

            streamingWave = new StreamingWave(waveFileStream, TimeSpan.FromMilliseconds(100));
            dynamicSound = streamingWave.DynamicSound;
        }
示例#2
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);
            font        = Content.Load <SpriteFont>("Fonts/Default");

            var waveFileStream = TitleContainer.OpenStream(@"Content\Sounds\48K16BSLoop.wav");

            streamingWave = new StreamingWave(waveFileStream, TimeSpan.FromMilliseconds(100));
            dynamicSound  = streamingWave.DynamicSound;
        }