Question: Xamarin Forms This is basically a modification of the MonkeyTapWithSound to make it respond faster from the book at https://docs.microsoft.com/en-us/xamarin/xamarin-forms/creating-mobile-apps-xamarin-forms/ The last bit of instructions
Xamarin Forms
This is basically a modification of the MonkeyTapWithSound to make it respond faster from the book at https://docs.microsoft.com/en-us/xamarin/xamarin-forms/creating-mobile-apps-xamarin-forms/
The last bit of instructions for this modification are as follows:
5. Split PlaySound into a MakeBuffer method with parameters (frequency) that returns a sound buffer, and another method PlayBufferedSound with the parameter (
Anyways, I've hit a wall and I'm not sure on how to finish this page.
Here's the code I have so far for the MonkeyTapWithSoundPage.cs:
namespace MTWSFast { class MonkeyTapWithSoundPage : MonkeyTap.MonkeyTapPage { const int errorDuration = 500;
// Diminished 7th in 1st inversion: C, Eb, F#, A double[] frequencies = { 523.25, 622.25, 739.99, 880 }; double endFrequency = 65.4;
List
protected override void FlashBoxView(int index) { SoundPlayer.PlaySound(frequencies[index]); base.FlashBoxView(index); }
protected override void InitializeBoxView() { buffers = new List protected override void EndGame() { SoundPlayer.PlaySound(65.4); base.EndGame(); } } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
