XNA Creators Club Online
Page 1 of 1 (7 items)
Sort Posts: Previous Next

Controlling Zune Device Volume (XNA 3.0)

Last post 06-14-2008 9:48 PM by Ashu Tatake. 6 replies.
  • 05-08-2008 1:43 AM

    Controlling Zune Device Volume (XNA 3.0)

    I just got a simple Music Visualizer running on Zune (Modified version of the one found in the documentation). It works great, love it. Except for the fact that I don't see any way of controlling the Device Volume.

    I can easily control the media player volume, but this cannot change the overall volume of the Zune it can only make the Zune quieter than the currently set Device Volume.

    I was wondering if there is any way to change the device volume within a game, because it is sort of jarring to quit out of the game just to change the volume. If not is there any chance of this being added in the future? I'm guessing Zune Games aren't supposed to be able to access any system settings, but it would be nice just to have a true volume slider.

  • 05-08-2008 12:41 PM In reply to

    Re: Controlling Zune Device Volume (XNA 3.0)

    A great question to which I do not know the answer! It might well not be possible for us to expose this, but please file a suggestion on Connect to make sure the relevant people get to take a look at this.
    XNA Framework Developer - blog - homepage
  • 05-09-2008 12:48 AM In reply to

    Re: Controlling Zune Device Volume (XNA 3.0)

    I always was running into this issue before I saw this thread and submitted a Connect feedback option. Do a search and you will find it probably. Feel free to add to it via the Comments.
  • 05-09-2008 1:32 AM In reply to

    Re: Controlling Zune Device Volume (XNA 3.0)

    Would this be it? Its in the XNAdocumentation                                                                                                              ms-help://MS.VSCC.v90/MS.VSIPCC.v90/MS.XNAGS30.1033/XNA/Audio_HowTo_ChangeSoundVolumeLevels.htm

    1. Create an AudioEngine, WaveBank and SoundBank at game start.

    2. During game update, call the Update method of the AudioEngine to allow the audio engine to process audio data.

    3. To retrieve a category of sounds whose volume you want to change, call AudioEngine.GetCategory and pass in the name of the category you created in the XACT project.

    4. Call AudioCategory.SetVolume on the retrieved category.

    5. Specify the desired volume, which typically is between 0.0f (silence) and 1.0f (full volume as authored).

    6. To make the volume louder than designed, pass in values greater than 1.0f (for example, a volume of 2.0f adds +6 dB to the authored level).

  • 05-09-2008 1:36 AM In reply to

    Re: Controlling Zune Device Volume (XNA 3.0)

    Nope. None of those classes apply to the Zune which is not capable of using any XACT stuff. That works fine for Windows or Xbox 360, but on Zune you don't have those available.


    Nick Gravelyn -- Microsoft XNA MVP
    Blog | Metacreature Games | Super Gravelyn Bros | Bloc | Next-Gen
  • 06-06-2008 5:29 PM In reply to

    Re: Controlling Zune Device Volume (XNA 3.0)

    This makes no sense why you could change the sound level.  If the sound is turned off before entering an application, the application has no sound? 
  • 06-14-2008 9:48 PM In reply to

    Re: Controlling Zune Device Volume (XNA 3.0)

    It's not currently possible to set the final device volume in the CTP release. But yes, there's a good chance this will be in the final release. :) 
    - Ashu Tatake
    XNA Framework Developer
Page 1 of 1 (7 items) Previous Next