Changeset 88299 in vbox
- Timestamp:
- Mar 26, 2021 2:05:04 PM (4 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
-
AudioMixBuffer.cpp (modified) (21 diffs)
-
AudioMixer.cpp (modified) (25 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixBuffer.cpp
r88282 r88299 142 142 * audio frames. 143 143 * 144 * @return IPRTstatus code. VINF_TRY_AGAIN for getting next pointer at beginning (circular).144 * @returns VBox status code. VINF_TRY_AGAIN for getting next pointer at beginning (circular). 145 145 * @param pMixBuf Mixing buffer to acquire audio frames from. 146 146 * @param cFrames Number of requested audio frames to write. … … 364 364 * Allocates the internal audio frame buffer. 365 365 * 366 * @return IPRTstatus code.366 * @returns VBox status code. 367 367 * @param pMixBuf Mixing buffer to allocate frame buffer for. 368 368 * @param cFrames Number of audio frames to allocate. … … 774 774 * Converts a PDM audio volume to an internal mixing buffer volume. 775 775 * 776 * @returns IPRTstatus code.776 * @returns VBox status code. 777 777 * @param pVolDst Where to store the converted mixing buffer volume. 778 778 * @param pVolSrc Volume to convert. … … 798 798 * Initializes a mixing buffer. 799 799 * 800 * @return IPRTstatus code.800 * @returns VBox status code. 801 801 * @param pMixBuf Mixing buffer to initialize. 802 802 * @param pszName Name of mixing buffer for easier identification. Optional. … … 908 908 * then will automatically do the (needed) conversion. 909 909 * 910 * @return IPRTstatus code.910 * @returns VBox status code. 911 911 * @param pMixBuf Mixing buffer to link parent to. 912 912 * @param pParent Parent mixing buffer to use for linking. … … 1049 1049 * Mixes audio frames from a source mixing buffer to a destination mixing buffer. 1050 1050 * 1051 * @return IPRTstatus code.1051 * @returns VBox status code. 1052 1052 * VERR_BUFFER_UNDERFLOW if the source did not have enough audio data. 1053 1053 * VERR_BUFFER_OVERFLOW if the destination did not have enough space to store the converted source audio data. … … 1232 1232 * Mixes audio frames down to the parent mixing buffer, extended version. 1233 1233 * 1234 * @return IPRTstatus code. See audioMixBufMixTo() for a more detailed explanation.1234 * @returns VBox status code. See audioMixBufMixTo() for a more detailed explanation. 1235 1235 * @param pMixBuf Source mixing buffer to mix to its parent. 1236 1236 * @param cSrcOffset Offset (in frames) of source mixing buffer. … … 1250 1250 * Mixes audio frames down to the parent mixing buffer. 1251 1251 * 1252 * @return IPRTstatus code. See audioMixBufMixTo() for a more detailed explanation.1252 * @returns VBox status code. See audioMixBufMixTo() for a more detailed explanation. 1253 1253 * @param pMixBuf Source mixing buffer to mix to its parent. 1254 1254 * @param cSrcFrames Number of source audio frames to mix to its parent. … … 1265 1265 * Internal helper function for debugging. Do not use directly. 1266 1266 * 1267 * @return IPRTstatus code.1267 * @returns VBox status code. 1268 1268 * @param pMixBuf Mixing buffer to print. 1269 1269 * @param pszFunc Function name to log this for. … … 1319 1319 * Do not use directly. 1320 1320 * 1321 * @return IPRTstatus code.1321 * @returns VBox status code. 1322 1322 * @param pMixBuf Mixing buffer to print. 1323 1323 * @param pszFunc Function name to print the chain for. … … 1364 1364 * For debug versions only. 1365 1365 * 1366 * @return IPRTstatus code.1366 * @returns VBox status code. 1367 1367 * @param pMixBuf Mixing buffer to print. 1368 1368 */ … … 1393 1393 * For debug versions only. 1394 1394 * 1395 * @return IPRTstatus code.1395 * @returns VBox status code. 1396 1396 * @param pMixBuf Mixing buffer to print. 1397 1397 */ … … 1429 1429 * Reads audio frames at a specific offset. 1430 1430 * 1431 * @return IPRTstatus code.1431 * @returns VBox status code. 1432 1432 * @param pMixBuf Mixing buffer to read audio frames from. 1433 1433 * @param offFrames Offset (in audio frames) to start reading from. … … 1446 1446 * not match the output will be converted accordingly. 1447 1447 * 1448 * @return IPRTstatus code.1448 * @returns VBox status code. 1449 1449 * @param pMixBuf Mixing buffer to read audio frames from. 1450 1450 * @param pDstProps The target format. … … 1633 1633 * Returns the current read position of a mixing buffer. 1634 1634 * 1635 * @returns IPRTstatus code.1635 * @returns VBox status code. 1636 1636 * @param pMixBuf Mixing buffer to return position for. 1637 1637 */ … … 1706 1706 * Unlinks a mixing buffer from its parent, if any. 1707 1707 * 1708 * @return IPRTstatus code.1708 * @returns VBox status code. 1709 1709 * @param pMixBuf Mixing buffer to unlink from parent. 1710 1710 */ … … 1768 1768 * The sample format being written must match the format of the mixing buffer. 1769 1769 * 1770 * @return IPRTstatus code.1770 * @returns VBox status code. 1771 1771 * @param pMixBuf Pointer to mixing buffer to write to. 1772 1772 * @param offFrames Offset (in frames) starting to write at. … … 1789 1789 * the mixing buffer operates on. 1790 1790 * 1791 * @return IPRTstatus code.1791 * @returns VBox status code. 1792 1792 * @param pMixBuf Pointer to mixing buffer to write to. 1793 1793 * @param pSrcProps The source format. … … 1892 1892 * The sample format being written must match the format of the mixing buffer. 1893 1893 * 1894 * @return IPRT status code, or VERR_BUFFER_OVERFLOW if frames which not have 1895 * been processed yet have been overwritten (due to cyclic buffer). 1894 * @returns VBox status code 1895 * @retval VERR_BUFFER_OVERFLOW if frames which not have been processed yet 1896 * have been overwritten (due to cyclic buffer). 1896 1897 * @param pMixBuf Pointer to mixing buffer to write to. 1897 1898 * @param pvBuf Pointer to audio buffer to be written. … … 1908 1909 * This function might write less data at once than requested. 1909 1910 * 1910 * @return IPRT status code, or VERR_BUFFER_OVERFLOW no space is available for writing anymore. 1911 * @returns VBox status code 1912 * @retval VERR_BUFFER_OVERFLOW no space is available for writing anymore. 1911 1913 * @param pMixBuf Pointer to mixing buffer to write to. 1912 1914 * @param pSrcProps The source format. … … 2009 2011 * Returns the current write position of a mixing buffer. 2010 2012 * 2011 * @returns IPRTstatus code.2013 * @returns VBox status code. 2012 2014 * @param pMixBuf Mixing buffer to return position for. 2013 2015 */ -
trunk/src/VBox/Devices/Audio/AudioMixer.cpp
r88298 r88299 160 160 * Creates an audio sink and attaches it to the given mixer. 161 161 * 162 * @returns IPRTstatus code.162 * @returns VBox status code. 163 163 * @param pMixer Mixer to attach created sink to. 164 164 * @param pszName Name of the sink to create. … … 210 210 * Creates an audio mixer. 211 211 * 212 * @returns IPRTstatus code.212 * @returns VBox status code. 213 213 * @param pcszName Name of the audio mixer. 214 214 * @param fFlags Creation flags. … … 342 342 * Invalidates all internal data, internal version. 343 343 * 344 * @returns IPRTstatus code.344 * @returns VBox status code. 345 345 * @param pMixer Mixer to invalidate data for. 346 346 */ … … 365 365 * Invalidates all internal data. 366 366 * 367 * @returns IPRTstatus code.367 * @returns VBox status code. 368 368 * @param pMixer Mixer to invalidate data for. 369 369 */ … … 411 411 * Removes a formerly attached audio sink for an audio mixer, internal version. 412 412 * 413 * @returns IPRTstatus code.413 * @returns VBox status code. 414 414 * @param pMixer Mixer to remove sink from. 415 415 * @param pSink Sink to remove. … … 442 442 * Removes a formerly attached audio sink for an audio mixer. 443 443 * 444 * @returns IPRTstatus code.444 * @returns VBox status code. 445 445 * @param pMixer Mixer to remove sink from. 446 446 * @param pSink Sink to remove. … … 460 460 * Sets the mixer's master volume. 461 461 * 462 * @returns IPRTstatus code.462 * @returns VBox status code. 463 463 * @param pMixer Mixer to set master volume for. 464 464 * @param pVol Volume to set. … … 494 494 * Adds an audio stream to a specific audio sink. 495 495 * 496 * @returns IPRTstatus code.496 * @returns VBox status code. 497 497 * @param pSink Sink to add audio stream to. 498 498 * @param pStream Stream to add. … … 557 557 * Creates an audio mixer stream. 558 558 * 559 * @returns IPRTstatus code.559 * @returns VBox status code. 560 560 * @param pSink Sink to use for creating the stream. 561 561 * @param pConn Audio connector interface to use. … … 708 708 * Controls a mixer sink. 709 709 * 710 * @returns IPRTstatus code.710 * @returns VBox status code. 711 711 * @param pSink Mixer sink to control. 712 712 * @param enmSinkCmd Sink command to set. … … 1184 1184 * Reads audio data from a mixer sink. 1185 1185 * 1186 * @returns IPRTstatus code.1186 * @returns VBox status code. 1187 1187 * @param pSink Mixer sink to read data from. 1188 1188 * @param enmOp Mixer operation to use for reading the data. … … 1291 1291 * Removes a mixer stream from a mixer sink, internal version. 1292 1292 * 1293 * @returns IPRTstatus code.1293 * @returns VBox status code. 1294 1294 * @param pSink Sink to remove mixer stream from. 1295 1295 * @param pStream Stream to remove. … … 1455 1455 * Sets the audio format of a mixer sink. 1456 1456 * 1457 * @returns IPRTstatus code.1457 * @returns VBox status code. 1458 1458 * @param pSink Sink to set audio format for. 1459 1459 * @param pPCMProps Audio format (PCM properties) to set. … … 1528 1528 * Set the current recording source of an input mixer sink, internal version. 1529 1529 * 1530 * @return IPRTstatus code.1530 * @returns VBox status code. 1531 1531 * @param pSink Input mixer sink to set recording source for. 1532 1532 * @param pStream Mixer stream to set as current recording source. Must be an input stream. … … 1601 1601 * Set the current recording source of an input mixer sink. 1602 1602 * 1603 * @return IPRTstatus code.1603 * @returns VBox status code. 1604 1604 * @param pSink Input mixer sink to set recording source for. 1605 1605 * @param pStream Mixer stream to set as current recording source. Must be an input stream. … … 1625 1625 * Sets the volume of an individual sink. 1626 1626 * 1627 * @returns IPRTstatus code.1627 * @returns VBox status code. 1628 1628 * @param pSink Sink to set volume for. 1629 1629 * @param pVol Volume to set. … … 1658 1658 * Updates a mixer sink, internal version. 1659 1659 * 1660 * @returns IPRTstatus code.1660 * @returns VBox status code. 1661 1661 * @param pSink Mixer sink to update. 1662 1662 */ … … 1819 1819 * Updates (invalidates) a mixer sink. 1820 1820 * 1821 * @returns IPRTstatus code.1821 * @returns VBox status code. 1822 1822 * @param pSink Mixer sink to update. 1823 1823 */ … … 1841 1841 * Updates the (master) volume of a mixer sink. 1842 1842 * 1843 * @returns IPRTstatus code.1843 * @returns VBox status code. 1844 1844 * @param pSink Mixer sink to update volume for. 1845 1845 * @param pVolMaster Master volume to set. … … 1882 1882 * Writes (buffered) output data of a sink's stream to the bound audio connector stream. 1883 1883 * 1884 * @returns IPRTstatus code.1884 * @returns VBox status code. 1885 1885 * @param pSink Sink of stream that contains the mixer stream. 1886 1886 * @param pMixStream Mixer stream to write output data for. … … 1897 1897 * Writes (buffered) output data of a sink's stream to the bound audio connector stream, extended version. 1898 1898 * 1899 * @returns IPRTstatus code.1899 * @returns VBox status code. 1900 1900 * @param pSink Sink of stream that contains the mixer stream. 1901 1901 * @param pMixStream Mixer stream to write output data for. … … 1989 1989 * only multiplex as much data as all streams can handle at this time. 1990 1990 * 1991 * @returns IPRTstatus code.1991 * @returns VBox status code. 1992 1992 * @param pSink Sink to write audio output to. 1993 1993 * @param pvBuf Pointer to audio data to write. … … 2062 2062 * Writes data to a mixer sink. 2063 2063 * 2064 * @returns IPRTstatus code.2064 * @returns VBox status code. 2065 2065 * @param pSink Sink to write data to. 2066 2066 * @param enmOp Mixer operation to use when writing data to the sink. … … 2125 2125 * Controls a mixer stream, internal version. 2126 2126 * 2127 * @returns IPRTstatus code.2127 * @returns VBox status code. 2128 2128 * @param pMixStream Mixer stream to control. 2129 2129 * @param enmCmd Mixer stream command to use. … … 2187 2187 * Controls a mixer stream. 2188 2188 * 2189 * @returns IPRTstatus code.2189 * @returns VBox status code. 2190 2190 * @param pMixStream Mixer stream to control. 2191 2191 * @param enmCmd Mixer stream command to use.
Note:
See TracChangeset
for help on using the changeset viewer.

