Announcement

Collapse
No announcement yet.

Another USB Sound Issue on Resume, well documented

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Another USB Sound Issue on Resume, well documented

    Greetings,

    been having a problem thats been irking me so Im trying to fix it.

    Its actually plagued me since I've had a carputer (long time!) and long before I started using RR, but had workarounds prior.

    Problem: I use a Soundblaster Audigy2 NX USB Soundcard

    Why? Because its the only card I know of that has optical input (for my XMPCR) I cant use PCI form factor due to space

    Here's whats happening:

    If I am playing an mp3 with Winamp as my player, and put the PC on standby (while it is playing), on resume the volume levels are completely jacked up and causes massive distortion. This ONLY happens when using Winamp. I can go to sleep with XM playing and my volume comes back from standby unchanged.

    I have a pretty high end system in my truck, so I keep my levels at a very specfic range

    Master: 100%
    Wave: The first line
    SPDIF: The first line

    Now, before hand it wasnt a problem because I was running XP SP1 on an old EPIA board. SP2 is what causes this problem. Now my new system (Intel G945GLF2) needs SP2 or I get BSOD's when I try to install the SP1 version of XP.

    Remember, the problem only happens when I put RR to sleep while Winamp is playing a song. If I close winamp first, then sleep, and resume - the levels are fine and everything is nice.

    So If I could find out a way to have 1 of 2 things happen, I'd be good. I just dont know enough about the structures and commands for these kind of commands.

    1. Kill the winamp.exe task before the computer goes to sleep. Ive seen reference to 'prehibernation' command that uses taskill.exe to stop winamp...but couldnt find documentation on it.

    2. On resume, send command to make MasterVolume=100% and the other 2 for whatever value the 1st line is, which I suppose you can find in the registry.

    Any help would be GREATLY appreciated.
    G945GLCF2 | 512MB RAM | 160GB HD | Holux GPS w/ Routis | XMPCR w/ TOSLINK mod | Audigy 2 NX | | Xenarc 700TSV |Opus 150W PSU.

  • #2
    Just made a new discovery

    If I set the Master to the first line and wave & spdif to 100%, the volume holds on resumes with winamp.

    So it comes down to if that would be equal to how I had it? Whats the best way to adjust the mixer, high master, low wave, vice versa, or a combination of both?
    G945GLCF2 | 512MB RAM | 160GB HD | Holux GPS w/ Routis | XMPCR w/ TOSLINK mod | Audigy 2 NX | | Xenarc 700TSV |Opus 150W PSU.

    Comment


    • #3
      anybody?
      G945GLCF2 | 512MB RAM | 160GB HD | Holux GPS w/ Routis | XMPCR w/ TOSLINK mod | Audigy 2 NX | | Xenarc 700TSV |Opus 150W PSU.

      Comment


      • #4
        This is generally an issue with USB sound cards because they "disconnect" during standby/resume. You can try to add a resume delay (RRConfig settin) to see if it doesn't help, but it appears the issue is in winamp (not RR) so that would not help... but If you say that closing winamp and re-opening it during the process fixes it, I'd say your best bet is to add this to exectbl.ini:

        Code:
        "ONSUSPEND","CLOSEWINAMP"
        "ONRESUME","STARTWINAMP"
        This will close winamp before suspending, and re-open it after resuming -- you may still want to add a resume delay in RRConfig if it doesn't work just like that.
        Ride Runner RR's Myspace

        "Being happy is not about having what you want, it's about wanting what you have."
        "The best things in life are always free - but that doesn't mean money can't buy you good things."

        Comment


        • #5
          Unfortunately that is not working

          Is there a command I can use to set the wave volume to x every time RR starts/resumes?
          G945GLCF2 | 512MB RAM | 160GB HD | Holux GPS w/ Routis | XMPCR w/ TOSLINK mod | Audigy 2 NX | | Xenarc 700TSV |Opus 150W PSU.

          Comment


          • #6
            Code:
            "ONRESUME","SETVOL;Wave;25"
            and in your rr.ini add the setting

            startcommand=SETVOL;Wave;25

            I can't remember if that is 'startcommand' or 'startcommands'
            RideRunner...The #1 FE, PERIOD.

            Current Project: DFXVoice [v1.0 Released]
            Next in line: RRMedia v2.0

            DFX 5.1.1 Skin
            Appstore Link

            My RideRunner Plugins
            RRMedia
            RRExtended
            DFXVoice

            "There are no bugs - only undocumented features."

            Comment


            • #7
              the startcommand is doing its job and setting the volume to 25 when starting RR

              however, the resume command isnt doing it, volume comes back at 100.
              G945GLCF2 | 512MB RAM | 160GB HD | Holux GPS w/ Routis | XMPCR w/ TOSLINK mod | Audigy 2 NX | | Xenarc 700TSV |Opus 150W PSU.

              Comment


              • #8
                Turn on the debug(if not already on) run thru a cycle and look at it around the resume point and see what logged.
                RideRunner...The #1 FE, PERIOD.

                Current Project: DFXVoice [v1.0 Released]
                Next in line: RRMedia v2.0

                DFX 5.1.1 Skin
                Appstore Link

                My RideRunner Plugins
                RRMedia
                RRExtended
                DFXVoice

                "There are no bugs - only undocumented features."

                Comment


                • #9
                  Code:
                  5/20/2010 2:43:37 PM: ---------------------------->
                  5/20/2010 2:43:37 PM: ResumeFromHibernate: (start)
                  5/20/2010 2:43:37 PM: ResumeFromHibernate: (rdelay = 10)
                  5/20/2010 2:43:37 PM: WM_POWERBROADCAST: wParam=PBT_APMRESUMESUSPEND
                  5/20/2010 2:43:37 PM: ResumeFromHibernate: (Resuming = true)
                  5/20/2010 2:43:37 PM: WM_POWERBROADCAST: wParam=PBT_APMRESUMEAUTOMATIC
                  5/20/2010 2:43:37 PM: WM_POWERBROADCAST: wParam=PBT_APMRESUMESUSPEND
                  5/20/2010 2:43:37 PM: ResumeFromHibernate: (Resuming = true)
                  5/20/2010 2:43:37 PM: WM_POWERBROADCAST: wParam=PBT_APMRESUMEAUTOMATIC
                  5/20/2010 2:43:37 PM: WM_POWERBROADCAST: wParam=PBT_APMRESUMESUSPEND
                  5/20/2010 2:43:37 PM: ResumeFromHibernate: (Resuming = true)
                  5/20/2010 2:43:37 PM: WM_POWERBROADCAST: wParam=PBT_APMRESUMESUSPEND
                  5/20/2010 2:43:37 PM: ResumeFromHibernate: (Resuming = true)
                  5/20/2010 2:43:37 PM: WM_POWERBROADCAST: wParam=PBT_APMRESUMESUSPEND
                  5/20/2010 2:43:37 PM: ResumeFromHibernate: (Resuming = true)
                  5/20/2010 2:43:49 PM: ResumeFromHibernate: (after resume delay)
                  5/20/2010 2:43:49 PM: Enter Exec: False, menu.skin, "ONRESUME", False
                  5/20/2010 2:43:49 PM: Que Exec: True, menu.skin, "ONRESUME", False
                  5/20/2010 2:43:49 PM: Executing: SETVOL;Wave;25
                  5/20/2010 2:43:49 PM: Leave Exec: False, menu.skin, SETVOL;Wave;25, False
                  5/20/2010 2:43:49 PM: ResumeFromHibernate: Start tuners... Sirius, XM, & HD
                  5/20/2010 2:43:49 PM: XM---> XMLoadIn: xmcache.ini, XMLastChannel=202
                  5/20/2010 2:43:49 PM: XM---> XMLoadIn: xmcache.ini, Cache Loaded, Number of stations=202
                  5/20/2010 2:43:49 PM: XM---> XMLoadIn: Completed
                  5/20/2010 2:43:49 PM: XM---> XMPowerON: Port Open Attempt
                  5/20/2010 2:43:49 PM: CheckResume: ResumeMusic=0 WasRadio=0
                  5/20/2010 2:43:49 PM: ResumeFromHibernate: (End Sub)
                  5/20/2010 2:43:50 PM: COMReceive: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:50 PM: SDK command: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:50 PM: XM---> oXM_XMEventPortOpened: .PowerOn
                  5/20/2010 2:43:50 PM: COMReceive: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:50 PM: SDK command: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:51 PM: COMReceive: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:51 PM: SDK command: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:51 PM: Enter Exec: False, menu.skin, "ONBTNPRESS||PLAY", False
                  5/20/2010 2:43:51 PM: Que Exec: True, menu.skin, "ONBTNPRESS||PLAY", False
                  5/20/2010 2:43:51 PM: Que Exec: True, menu.skin, "PLAY", False
                  5/20/2010 2:43:51 PM: Executing: PLAY
                  5/20/2010 2:43:51 PM: Que Exec: True, menu.skin, "SETUPANTISTATUS", False
                  5/20/2010 2:43:51 PM: Executing: SETVARBYCODE;VSTATUS;STATUS
                  5/20/2010 2:43:51 PM: Que Exec: True, menu.skin, "EVAL;B_ANTISTATUS;strcomp("PLAY";"$VSTATUS$")||BYVAR;B_ANTISTATUS;ISNTPLAYING<<ISPLAYING", False
                  5/20/2010 2:43:51 PM: Executing: EVAL;B_ANTISTATUS;strcomp("PLAY";"PLAY")
                  5/20/2010 2:43:51 PM: Que Exec: True, menu.skin, "BYVAR;B_ANTISTATUS;ISNTPLAYING<<ISPLAYING", False
                  5/20/2010 2:43:51 PM: Executing: BYVAR;B_ANTISTATUS;ISNTPLAYING<<ISPLAYING
                  5/20/2010 2:43:51 PM: Que Exec: True, menu.skin, "ISPLAYING", False
                  5/20/2010 2:43:51 PM: Executing: SETVAR;ANTISTATUS;PAUSE
                  5/20/2010 2:43:51 PM: Que Exec: True, menu.skin, "SETVAR;STATUSSYM;0", False
                  5/20/2010 2:43:51 PM: Executing: SETVAR;STATUSSYM;0
                  5/20/2010 2:43:51 PM: Leave Exec: False, menu.skin, SETVAR;STATUSSYM;0, False
                  5/20/2010 2:43:51 PM: COMReceive: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:51 PM: SDK command: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:52 PM: COMReceive: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:52 PM: SDK command: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:52 PM: XM---> oXM_XMEventRadioReady:
                  5/20/2010 2:43:52 PM: XM---> XMPoweredON: XMON=False,XMTuneTo=0
                  5/20/2010 2:43:52 PM: COMReceive: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:52 PM: SDK command: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:53 PM: COMReceive: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:53 PM: SDK command: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:53 PM: COMReceive: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:53 PM: SDK command: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:54 PM: Enter Exec: False, menu.skin, "ONBTNPRESS||LOAD;alt_menu_cont2.skin", False
                  5/20/2010 2:43:54 PM: Que Exec: True, menu.skin, "ONBTNPRESS||LOAD;alt_menu_cont2.skin", False
                  5/20/2010 2:43:54 PM: Que Exec: True, menu.skin, "LOAD;alt_menu_cont2.skin", False
                  5/20/2010 2:43:54 PM: Executing: LOAD;alt_menu_cont2.skin
                  5/20/2010 2:43:54 PM: COMReceive: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:54 PM: SDK command: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:54 PM: Que Exec: True, alt_menu_cont2.skin, "ONSCREENCHANGE", False
                  5/20/2010 2:43:54 PM: Leave Exec: False, alt_menu_cont2.skin, ONSCREENCHANGE, False
                  5/20/2010 2:43:55 PM: COMReceive: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:55 PM: SDK command: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:55 PM: Enter Exec: False, alt_menu_cont2.skin, "ONBTNPRESS||MAIN", False
                  5/20/2010 2:43:55 PM: Que Exec: True, alt_menu_cont2.skin, "ONBTNPRESS||MAIN", False
                  5/20/2010 2:43:55 PM: Que Exec: True, alt_menu_cont2.skin, "MAIN", False
                  5/20/2010 2:43:55 PM: Executing: MAIN
                  5/20/2010 2:43:55 PM: Enter Exec: True, menu.skin, , False
                  5/20/2010 2:43:55 PM: Que Exec: True, menu.skin, "ONSCREENCHANGE", False
                  5/20/2010 2:43:55 PM: Leave Exec: False, menu.skin, ONSCREENCHANGE, False
                  5/20/2010 2:43:55 PM: COMReceive: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:55 PM: SDK command: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:56 PM: Enter Exec: False, menu.skin, "ONBTNPRESS||LOAD;alt_menu_cont2.skin", False
                  5/20/2010 2:43:56 PM: Que Exec: True, menu.skin, "ONBTNPRESS||LOAD;alt_menu_cont2.skin", False
                  5/20/2010 2:43:56 PM: Que Exec: True, menu.skin, "LOAD;alt_menu_cont2.skin", False
                  5/20/2010 2:43:56 PM: Executing: LOAD;alt_menu_cont2.skin
                  5/20/2010 2:43:56 PM: Que Exec: True, alt_menu_cont2.skin, "ONSCREENCHANGE", False
                  5/20/2010 2:43:56 PM: Leave Exec: False, alt_menu_cont2.skin, ONSCREENCHANGE, False
                  5/20/2010 2:43:56 PM: COMReceive: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:56 PM: SDK command: REQUEST;milage;GPSLAT||REQUEST;milage;GPSLON||REQUEST;milage;GPSSPD
                  5/20/2010 2:43:56 PM: Enter Exec: False, alt_menu_cont2.skin, "ONBTNPRESS||MAINBT27", False
                  5/20/2010 2:43:56 PM: Que Exec: True, alt_menu_cont2.skin, "ONBTNPRESS||MAINBT27", False
                  5/20/2010 2:43:56 PM: Que Exec: True, alt_menu_cont2.skin, "MAINBT27", False
                  5/20/2010 2:43:56 PM: Executing: BYVAR;MAINBUTTON27;AP01<<AP02<<AP03<<AP04<<AP05<<AP06<<AP07<<AP08<<AP09<<AP10<<AP11<<AP12<<AP13<<AP14<<AP15<<AP16<<AP17<<AP18<<AP19<<AP20<<AP21<<AP22<<AP23<<AP24<<AP25<<AP26<<AP27<<AP28<<AP29<<AP30<<AP31<<AP32<<AP33<<AP34<<AP35<<AP36<<AP37<<AP38<<AP39<<AP40<<AP41<<AP42<<AP43<<AP44<<AP45<<AP46<<AP47<<AP48<<AP49<<AP50<<AP51<<AP52<<AP53<<AP54<<AP55<<AP56<<AP57<<AP58<<AP59<<AP60<<AP61<<AP62<<AP63<<AP64<<AP65<<AP66<<AP67<<AP68<<AP69<<AP70<<AP71
                  5/20/2010 2:43:56 PM: Que Exec: True, alt_menu_cont2.skin, "AP07", False
                  5/20/2010 2:43:56 PM: Executing: RUN;C:\Program Files\RideRunner\Skins\LSX VOID 3.0\cleanup.exe
                  5/20/2010 2:43:56 PM: Shell: "C:\Program Files\RideRunner\Skins\LSX VOID 3.0\cleanup.exe"
                  5/20/2010 2:43:56 PM: Que Exec: True, alt_menu_cont2.skin, "VIZOFF||QUIT", False
                  5/20/2010 2:43:56 PM: Executing: SETVAR;VIZSTAT;0
                  5/20/2010 2:43:56 PM: Que Exec: True, alt_menu_cont2.skin, "SAVETOSKIN;VIZSTAT;0", False
                  5/20/2010 2:43:56 PM: Executing: SAVETOSKIN;VIZSTAT;0
                  5/20/2010 2:43:56 PM: SAVETOINI: C:\Program Files\RideRunner\Skins\LSX VOID 3.0\skin.ini
                  5/20/2010 2:43:56 PM: Que Exec: True, alt_menu_cont2.skin, "QUIT", False
                  5/20/2010 2:43:56 PM: Executing: QUIT
                  5/20/2010 2:43:56 PM: Enter Exec: True, alt_menu_cont2.skin, "ONEXIT", False
                  5/20/2010 2:43:56 PM: Queued: "ONEXIT"
                  5/20/2010 2:43:56 PM: Shutdown: (1)
                  5/20/2010 2:43:56 PM: Shutdown: (2)
                  5/20/2010 2:43:56 PM: Shutdown: (3)
                  5/20/2010 2:43:56 PM: XM---> XMInActive: XMON=False
                  5/20/2010 2:43:56 PM: XM---> XMSaveOut: xmcache.ini, XMLastChannel=202
                  5/20/2010 2:43:56 PM: XM---> XMSaveOut: End Sub
                  5/20/2010 2:43:56 PM: XM---> XMPowerOFF: XMON=False
                  5/20/2010 2:43:56 PM: Shutdown: (4)
                  5/20/2010 2:43:56 PM: Plugin Manager: Warning Plugin skintool does not support UnLoad Method
                  5/20/2010 2:43:56 PM: Plugin Manager: Warning Plugin weather does not support UnLoad Method
                  5/20/2010 2:43:56 PM: Plugin Manager: Warning Plugin milage does not support UnLoad Method
                  5/20/2010 2:43:56 PM: Plugin Manager: Warning Plugin rrearth does not support UnLoad Method
                  5/20/2010 2:43:57 PM: Plugin Manager: ALL Plugins unloaded.
                  5/20/2010 2:43:57 PM: Shutdown: (5)
                  5/20/2010 2:43:57 PM: Shutdown: (6)
                  5/20/2010 2:43:57 PM: Shutdown: (7)
                  5/20/2010 2:43:57 PM: OSUnloadMode: 1
                  5/20/2010 2:43:57 PM: Shutdown
                  G945GLCF2 | 512MB RAM | 160GB HD | Holux GPS w/ Routis | XMPCR w/ TOSLINK mod | Audigy 2 NX | | Xenarc 700TSV |Opus 150W PSU.

                  Comment


                  • #10
                    if you ask me the "ONRESUME" is working fine, a little early, but still long after resume delay
                    you might want to wait before doing it

                    "ONRESUME","wait;1||SETVOL;Wave;25"

                    if that doesnt work... i assume you tested "SETVOL;Wave;25" in skintool
                    and if it still doesnt work... keep hacking
                    -Thanks
                    Mitch
                    www.rush2112.net

                    "Did you test it in carwings??"

                    Sun, Come shine my way
                    May healing waters bury all my pain
                    Wind, Carry me home
                    The fabric of reality is tearing apart
                    The piece of me that died
                    Will return To live again

                    Comment


                    • #11
                      that cmd works fine, as he said that the startcommand that he added was doing its job....

                      Some ppl ( the guy above ), needs to read a bit more B4 posting
                      RideRunner...The #1 FE, PERIOD.

                      Current Project: DFXVoice [v1.0 Released]
                      Next in line: RRMedia v2.0

                      DFX 5.1.1 Skin
                      Appstore Link

                      My RideRunner Plugins
                      RRMedia
                      RRExtended
                      DFXVoice

                      "There are no bugs - only undocumented features."

                      Comment


                      • #12
                        he clearly says

                        "however, the resume command isnt doing it, volume comes back at 100."
                        -Thanks
                        Mitch
                        www.rush2112.net

                        "Did you test it in carwings??"

                        Sun, Come shine my way
                        May healing waters bury all my pain
                        Wind, Carry me home
                        The fabric of reality is tearing apart
                        The piece of me that died
                        Will return To live again

                        Comment


                        • #13
                          that is correct. the initial startup of RR sets the level at 25...its just coming back from resume that is giving me the problems.

                          Im trying to edit the skin itself, but the skintool screen gets cut off and I cant read all of it...I have only 800x480 resolution..

                          Im running LSX Void skin if that helps.
                          G945GLCF2 | 512MB RAM | 160GB HD | Holux GPS w/ Routis | XMPCR w/ TOSLINK mod | Audigy 2 NX | | Xenarc 700TSV |Opus 150W PSU.

                          Comment


                          • #14
                            I had sorta same problem with the skintool when I do bench work on the carpc. And why i also updated the tool so that you could shrink it vert if needed...
                            RideRunner...The #1 FE, PERIOD.

                            Current Project: DFXVoice [v1.0 Released]
                            Next in line: RRMedia v2.0

                            DFX 5.1.1 Skin
                            Appstore Link

                            My RideRunner Plugins
                            RRMedia
                            RRExtended
                            DFXVoice

                            "There are no bugs - only undocumented features."

                            Comment


                            • #15
                              Just discovered that if I am in RR, minimize it, go to the taks manager and kill winamp.exe - then sleep/resume...volume levels dont change

                              so i have to figure out a way to prevent winamp from reopening on startup until the sound card comes back.

                              can i use something like wait;5||STARTWINAMP
                              G945GLCF2 | 512MB RAM | 160GB HD | Holux GPS w/ Routis | XMPCR w/ TOSLINK mod | Audigy 2 NX | | Xenarc 700TSV |Opus 150W PSU.

                              Comment

                              Working...
                              X