Results 1 to 5 of 5

Thread: Setting SD Volume

  1. #1
    Low Bitrate
    Join Date
    Apr 2007
    Location
    San Dimas, Cali
    Posts
    76

    Setting SD Volume

    There are a few requests for volume changing mods that I would like to help out with. I am trying to set the volume in a digitalmod with:

    app.SetVolume(eVTMaster, vol)

    It gives me an error "Cannot us parentheses when calling a Sub".

    What is the proper way to do this? I know app.GetVolume(eVTMaster) will give me the volume value, so it seems I should be able to use the same volume type to set it. Please help!

    Also, where can I get a list of dynamic string values that we have access to using GetDynamicStringValue?

    There is also a bug in the Dev Environment that crashes it when typing "app.GetVolume(" and changing the values in the parentheses. It is easily reproducible.

  2. #2
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    sub procedures should not use parenthesis in visual basic, you should use app.SetVolume eVTMaster, vol

    All enumerations can be extracted from the built in type library using the visual studio OLE/COM object viewer.

    The following in the enumDynamicLabelType enumeration.

    //Dynamic Label values for CDynamicLabelPanel
    typedef [helpstring("The type of values that can be used for dynamic labels and App.GetDynamicStringValue.")]
    enum {
    eDLTDate,
    eDLTTime,

    eDLTLastFunction,

    eDLTMediaTitle,
    eDLTMediaArtist,
    eDLTMediaTimeLeft,
    eDLTMediaChannel,
    eDLTMediaType,
    eDLTVolume,
    eDLTMute,
    eDLTMediaTime,
    eDLTMediaDuration,
    eDLTMediaState,
    eDLTMediaStateNoPlayPause,
    eDLTMediaPlaySpeed,
    eDLTRecordSavingPercent,

    eDLTNAVStreetNoNumber,
    eDLTNAVStreet,
    eDLTNAVCityStateZip,
    eDLTNAVSpeed,
    eDLTNAVHeading,
    eDLTNAVLatitude,
    eDLTNAVLongitude,
    eDLTNAVAltitude,
    eDLTNAVDistanceTravelled,
    eDLTNAVTimeOnRoad,
    eDLTNAVTimeDriving,
    eDLTNAVTimeStopped,
    eDLTNAVMaxSpeed,

    eDLTNAVAction,
    eDLTNAVFullDirection,
    eDLTNAVNextStreet,
    eDLTNAVAlternateNextStreet,
    eDLTNAVSecondStreet,
    eDLTNAVThirdStreet,
    eDLTNAVETA,
    eDLTNAVDistanceToNextDirection,
    eDLTNAVTimeToNextDirection,
    eDLTNAVDistanceToSecondStreet,
    eDLTNAVDistanceToThirdStreet,

    eDLTNAVDestLatitude,
    eDLTNAVDestLongitude,
    eDLTNAVDestName,
    eDLTNAVDestStreet,
    eDLTNAVDestCityStateZip,
    eDLTNAVDestCountry,
    eDLTNAVDestPhone,
    eDLTNAVDistanceToDest,
    eDLTNAVTimeToDest,

    eDLTNAVClickedLocationLatitude,
    eDLTNAVClickedLocationLongitude,
    eDLTNAVClickedLocationName,
    eDLTNAVClickedLocationStreet,
    eDLTNAVClickedLocationCityStateZip,
    eDLTNAVClickedLocationCountry,
    eDLTNAVDistanceToClickedLocation,

    eDLTNAVVirtualEarthMode,
    eDLTNAVVirtualEarthDownloadProgress,
    eDLTNAVVirtualEarthDownloadRate,
    eDLTNAVVirtualEarthZoomLevel,


    eDLTRipMediaPercentComplete,
    eDLTRipMediaKBCopied,
    eDLTRipMediaFileCount,
    eDLTRipMediaStatus,
    eDLTRipMediaFileName,

    eDLTVoiceRecognitionText,
    eDLTVoiceHypothesisText,

    eDLTBlueToothProvider,
    eDLTBlueToothStatusLine1,
    eDLTBlueToothStatusLine2,
    eDLTBlueToothCallName1,
    eDLTBlueToothCallName2,
    eDLTBlueToothCallName3,
    eDLTBlueToothIncomingCallName,
    eDLTBlueToothIsMuted,

    eDLTHWStatusParkingBrake,
    eDLTHWStatusReverseGear,
    eDLTHWStatusACC,
    eDLTHWStatusILL,
    eDLTHWStatusMonitorSlideLength,
    eDLTHWStatusMonitorTiltAngle,
    eDLTHWStatusMonitorMode,
    eDLTHWStatusMonitorBrightness,
    eDLTHWStatusTemperature,
    eDLTHWStatusBattVoltage,

    eDLTMediaTypeRear,
    eDLTMediaTitleRear,
    eDLTMediaArtistRear,
    eDLTMediaTimeLeftRear,
    eDLTMediaChannelRear,
    eDLTVolumeRear,
    eDLTMediaTimeRear,
    eDLTMediaDurationRear,
    eDLTMediaStateRear,
    eDLTMediaPlaySpeedRear,
    eDLTMediaModeRear,

    eDLTCount
    } enumDynamicLabelType;
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  3. #3
    Low Bitrate
    Join Date
    Apr 2007
    Location
    San Dimas, Cali
    Posts
    76
    Thank you! This is great! It showed parentheses in the pop-up help so that's what threw me. I am not using Visual Studio, just the Dev Environment, which is great in my opinion. So my ideas, so little time...

  4. #4
    Low Bitrate
    Join Date
    Apr 2007
    Location
    San Dimas, Cali
    Posts
    76
    I got the Microsoft OLE/COM Object Viewer, but I can't find any reference to Streedeck in it. Where is it?

    Can you give me an example with explanation of using the Label.SetFont expression? I want to change the color of a label dynamically.

    Is there a way to extract the enumerations as you showed me with VBS?

  5. #5
    Low Bitrate
    Join Date
    Apr 2007
    Location
    San Dimas, Cali
    Posts
    76

    god_of_cpu

    god_of_cpu,

    Can you help me on this?

Similar Threads

  1. Volume Problem
    By IceZero in forum Road Runner
    Replies: 6
    Last Post: 04-17-2007, 10:09 PM
  2. Road Runner Volume Issues ! ! !
    By rewindnottm in forum Road Runner
    Replies: 8
    Last Post: 03-20-2007, 03:38 AM
  3. Road Runner Sound / Volume Troubles
    By zzzBrett in forum Road Runner
    Replies: 12
    Last Post: 02-10-2007, 02:12 PM
  4. Released: BETA 10
    By skippy76 in forum Road Runner
    Replies: 169
    Last Post: 03-07-2006, 10:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •