VirtualBox

Changeset 55339 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 20, 2015 12:52:33 PM (10 years ago)
Author:
vboxsync
Message:

Spelling.

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

Legend:

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

    r55338 r55339  
    272272 * thus don't do any bounds checking!
    273273 *
    274  * Note: Currently does not handle any endianess conversion yet!
     274 * Note: Currently does not handle any endianness conversion yet!
    275275 */
    276276#define AUDMIXBUF_CONVERT(_aName, _aType, _aMin, _aMax, _aSigned, _aShift) \
  • trunk/src/VBox/Devices/Audio/DrvHostPulseAudio.cpp

    r55335 r55339  
    154154
    155155static int drvHostPulseAudioPulseToFmt(pa_sample_format_t pulsefmt,
    156                                        PDMAUDIOFMT *pFmt, PDMAUDIOENDIANNESS *pEndianess)
     156                                       PDMAUDIOFMT *pFmt, PDMAUDIOENDIANNESS *pEndianness)
    157157{
    158158    switch (pulsefmt)
     
    160160        case PA_SAMPLE_U8:
    161161            *pFmt = AUD_FMT_U8;
    162             *pEndianess = PDMAUDIOENDIANNESS_LITTLE;
     162            *pEndianness = PDMAUDIOENDIANNESS_LITTLE;
    163163            break;
    164164
    165165        case PA_SAMPLE_S16LE:
    166166            *pFmt = AUD_FMT_S16;
    167             *pEndianess = PDMAUDIOENDIANNESS_LITTLE;
     167            *pEndianness = PDMAUDIOENDIANNESS_LITTLE;
    168168            break;
    169169
    170170        case PA_SAMPLE_S16BE:
    171171            *pFmt = AUD_FMT_S16;
    172             *pEndianess = PDMAUDIOENDIANNESS_BIG;
     172            *pEndianness = PDMAUDIOENDIANNESS_BIG;
    173173            break;
    174174
     
    176176        case PA_SAMPLE_S32LE:
    177177            *pFmt = AUD_FMT_S32;
    178             *pEndianess = PDMAUDIOENDIANNESS_LITTLE;
     178            *pEndianness = PDMAUDIOENDIANNESS_LITTLE;
    179179            break;
    180180#endif
     
    183183        case PA_SAMPLE_S32BE:
    184184            *pFmt = AUD_FMT_S32;
    185             *pEndianess = PDMAUDIOENDIANNESS_BIG;
     185            *pEndianness = PDMAUDIOENDIANNESS_BIG;
    186186            break;
    187187#endif
     
    602602        uint32_t cbBuf  = RT_MIN(pThisStrmOut->BufAttr.tlength * 2,
    603603                                 pThisStrmOut->BufAttr.maxlength); /** @todo Make this configurable! */
    604         if (cbBuf) 
     604        if (cbBuf)
    605605        {
    606606            pThisStrmOut->pvPCMBuf = RTMemAllocZ(cbBuf);
     
    852852        while (cbToRead)
    853853        {
    854             rc = audioMixBufReadCirc(&pHstStrmOut->MixBuf, pThisStrmOut->pvPCMBuf, 
     854            rc = audioMixBufReadCirc(&pHstStrmOut->MixBuf, pThisStrmOut->pvPCMBuf,
    855855                                     RT_MIN(cbToRead, pThisStrmOut->cbPCMBuf), &cRead);
    856             if (   !cRead 
     856            if (   !cRead
    857857                || RT_FAILURE(rc))
    858858            {
     
    861861
    862862            cbRead = AUDIOMIXBUF_S2B(&pHstStrmOut->MixBuf, cRead);
    863             if (pa_stream_write(pThisStrmOut->pStream, pThisStrmOut->pvPCMBuf, cbRead, NULL /* Cleanup callback */, 
     863            if (pa_stream_write(pThisStrmOut->pStream, pThisStrmOut->pvPCMBuf, cbRead, NULL /* Cleanup callback */,
    864864                                0, PA_SEEK_RELATIVE) < 0)
    865865            {
     
    872872            cbReadTotal += cbRead;
    873873
    874             LogFlowFunc(("\tcRead=%RU32 (%zu bytes) cbReadTotal=%RU32, cbToRead=%RU32\n", 
     874            LogFlowFunc(("\tcRead=%RU32 (%zu bytes) cbReadTotal=%RU32, cbToRead=%RU32\n",
    875875                         cRead, AUDIOMIXBUF_S2B(&pHstStrmOut->MixBuf, cRead), cbReadTotal, cbToRead));
    876876        }
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