VirtualBox

Changeset 90764 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Aug 20, 2021 3:54:46 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146398
Message:

Audio/ATS: Implemented audioTestSvcClientDoBye(). bugref:10008

File:
1 edited

Legend:

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

    r90048 r90764  
    230230
    231231/**
     232 * Tells the ATS server that we want disconnect.
     233 *
     234 * @returns VBox status code.
     235 * @param   pClient             Client to disconnect.
     236 */
     237static int audioTestSvcClientDoBye(PATSCLIENT pClient)
     238{
     239    ATSPKTREQHOWDY Req;
     240    Req.uVersion = ATS_PROTOCOL_VS;
     241    audioTestSvcClientReqHdrInit(&Req.Hdr, sizeof(Req), ATSPKT_OPCODE_BYE, 0);
     242    int rc = audioTestSvcClientSendMsg(pClient, &Req, sizeof(Req));
     243    if (RT_SUCCESS(rc))
     244        rc = audioTestSvcClientRecvAck(pClient);
     245    return rc;
     246}
     247
     248/**
    232249 * Creates an ATS client.
    233250 *
     
    255272void AudioTestSvcClientDestroy(PATSCLIENT pClient)
    256273{
     274    /* ignore rc */ audioTestSvcClientDoBye(pClient);
     275
    257276    if (pClient->pTransport)
    258277        pClient->pTransport->pfnTerm(pClient->pTransportInst);
Note: See TracChangeset for help on using the changeset viewer.

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