July 2017
Beginner to intermediate
390 pages
10h 53m
English
We have our code ready. Now, we should place it in the right spots to make use of it. I have called my project SoundsDemo, so I have a class called SoundsDemoMain. You might have another name, but it will end in Main. This is where the SpinningCubeRenderer instance is created, so you will have seen this before.
Speaking of which, the place where we create our SpinningCubeRenderer is also a great place to create an instance of our new SoundPlayer and load the data we need. Find the bit in the SetHolographicSpace() method where the SpinningCubeRenderer is called and change it to look more like this:
#if DRAW_SAMPLE_CONTENT // Initialize the sample hologram. spinningCubeRenderer = new SpinningCubeRenderer(deviceResources); ...
Read now
Unlock full access