VirtualBox

Changeset 104693 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
May 16, 2024 4:44:11 PM (9 months ago)
Author:
vboxsync
Message:

Devices + GuestHost: Fixed warnings. ​​bugref:3409

Location:
trunk/src/VBox/Devices/Audio
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/AudioTestServiceTcp.cpp

    r99775 r104693  
    464464    else
    465465    {
    466         if (pClient)
    467         {
    468             atsTcpFreeClient(pThis, pClient);
    469             pClient = NULL;
    470         }
     466        atsTcpFreeClient(pThis, pClient);
     467        pClient = NULL;
    471468    }
    472469
  • trunk/src/VBox/Devices/Audio/DevHdaStream.cpp

    r103134 r104693  
    10801080        Assert(AudioHlpPcmPropsAreValidAndSupported(&pStreamShared->State.Cfg.Props));
    10811081
    1082         if (fEnable)
    1083         {
    1084             if (!AudioHlpFileIsOpen(pStreamR3->Dbg.Runtime.pFileStream))
    1085             {
    1086                 int rc2 = AudioHlpFileOpen(pStreamR3->Dbg.Runtime.pFileStream, AUDIOHLPFILE_DEFAULT_OPEN_FLAGS,
    1087                                            &pStreamShared->State.Cfg.Props);
    1088                 AssertRC(rc2);
    1089             }
    1090 
    1091             if (!AudioHlpFileIsOpen(pStreamR3->Dbg.Runtime.pFileDMARaw))
    1092             {
    1093                 int rc2 = AudioHlpFileOpen(pStreamR3->Dbg.Runtime.pFileDMARaw, AUDIOHLPFILE_DEFAULT_OPEN_FLAGS,
    1094                                            &pStreamShared->State.Cfg.Props);
    1095                 AssertRC(rc2);
    1096             }
    1097 
    1098             if (!AudioHlpFileIsOpen(pStreamR3->Dbg.Runtime.pFileDMAMapped))
    1099             {
    1100                 int rc2 = AudioHlpFileOpen(pStreamR3->Dbg.Runtime.pFileDMAMapped, AUDIOHLPFILE_DEFAULT_OPEN_FLAGS,
    1101                                            &pStreamShared->State.Cfg.Props);
    1102                 AssertRC(rc2);
    1103             }
     1082        if (!AudioHlpFileIsOpen(pStreamR3->Dbg.Runtime.pFileStream))
     1083        {
     1084            int rc2 = AudioHlpFileOpen(pStreamR3->Dbg.Runtime.pFileStream, AUDIOHLPFILE_DEFAULT_OPEN_FLAGS,
     1085                                       &pStreamShared->State.Cfg.Props);
     1086            AssertRC(rc2);
     1087        }
     1088
     1089        if (!AudioHlpFileIsOpen(pStreamR3->Dbg.Runtime.pFileDMARaw))
     1090        {
     1091            int rc2 = AudioHlpFileOpen(pStreamR3->Dbg.Runtime.pFileDMARaw, AUDIOHLPFILE_DEFAULT_OPEN_FLAGS,
     1092                                       &pStreamShared->State.Cfg.Props);
     1093            AssertRC(rc2);
     1094        }
     1095
     1096        if (!AudioHlpFileIsOpen(pStreamR3->Dbg.Runtime.pFileDMAMapped))
     1097        {
     1098            int rc2 = AudioHlpFileOpen(pStreamR3->Dbg.Runtime.pFileDMAMapped, AUDIOHLPFILE_DEFAULT_OPEN_FLAGS,
     1099                                       &pStreamShared->State.Cfg.Props);
     1100            AssertRC(rc2);
    11041101        }
    11051102    }
  • trunk/src/VBox/Devices/Audio/DrvAudio.cpp

    r103430 r104693  
    16231623        }
    16241624    }
    1625     else if (CfgReq.Backend.cFramesPreBuffering == 0) /* Was the pre-buffering requested as being disabeld? Tell the users. */
     1625    else /* Was the pre-buffering requested as being disabeld? Tell the users. */
    16261626    {
    16271627        LogRel2(("Audio: Pre-buffering is disabled for stream '%s'\n", pCfgAcq->szName));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette