Changeset 55005 in vbox for trunk/include
- Timestamp:
- Mar 30, 2015 12:07:39 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 99276
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmaudioifs.h
r54491 r55005 30 30 #include <iprt/list.h> 31 31 32 #ifndef VBOX_WITH_PDM_AUDIO_DRIVER 32 33 typedef struct 33 34 { … … 36 37 uint32_t l; 37 38 } volume_t; 39 #endif 38 40 39 41 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER … … 137 139 PDMAUDIOMIXERCTL_PCM, 138 140 PDMAUDIOMIXERCTL_LINE_IN, 141 PDMAUDIOMIXERCTL_MIC_IN, 139 142 /** Hack to blow the type up to 32-bit. */ 140 143 PDMAUDIOMIXERCTL_32BIT_HACK = 0x7fffffff … … 199 202 bool fSwapEndian; 200 203 } PDMPCMPROPS, *PPDMPCMPROPS; 204 205 /** 206 * Structure keeping an audio volume level. 207 */ 208 typedef struct PDMAUDIOVOLUME 209 { 210 /** Set to @c true if this stream is muted, @c false if not. */ 211 bool fMuted; 212 /** Left channel volume. */ 213 uint32_t uLeft; 214 /** Right channel volume. */ 215 uint32_t uRight; 216 } PDMAUDIOVOLUME, *PPDMAUDIOVOLUME; 201 217 202 218 /** … … 243 259 * in the samples buffer. */ 244 260 uint32_t offReadWrite; 245 /** Total samples already mixed down to the 246 * parent buffer (if any). Always starting at 247 * the parent's offReadWrite position. 248 * Note: Count always is specified in parent samples, 249 * as the sample count can differ between parent 250 * and child. */ 261 /** 262 * Total samples already mixed down to the parent buffer (if any). Always starting at 263 * the parent's offReadWrite position. 264 * 265 * Note: Count always is specified in parent samples, as the sample count can differ between parent 266 * and child. 267 */ 251 268 uint32_t cMixed; 252 269 uint32_t cProcessed; 253 270 /** Pointer to parent buffer (if any). */ 254 271 PPDMAUDIOMIXBUF pParent; 255 /** List of children mix buffers to keep 256 * in sync with (if being a parent buffer). */ 272 /** List of children mix buffers to keep in sync with (if being a parent buffer). */ 257 273 RTLISTANCHOR lstBuffers; 258 /** Intermediate structure for buffer 259 * conversion tasks. */ 274 /** Intermediate structure for buffer conversion tasks. */ 260 275 PPDMAUDIOSTRMRATE pRate; 276 /** Current volume used for mixing. */ 277 PDMAUDIOVOLUME Volume; 261 278 /** This buffer's audio format. */ 262 279 PDMAUDIOMIXBUFFMT AudioFmt; … … 335 352 /** Guest audio output stream has some samples or not. */ 336 353 bool fEmpty; 337 /** Set to @c true if this stream is muted, @c false if not. */338 bool fMuted;339 354 /** Name of this stream. */ 340 355 char *pszName; 341 /** Left channel volume. */342 uint32_t uVolumeLeft;343 /** Right channel volume. */344 uint32_t uVolumeRight;345 356 } PDMAUDIOGSTSTRMSTATE, *PPDMAUDIOGSTSTRMSTATE; 346 357 … … 443 454 */ 444 455 DECLR3CALLBACKMEMBER(int, pfnInitNull, (PPDMIAUDIOCONNECTOR pInterface)); 445 446 /**447 * Sets the audio volume of a specific guest output stream.448 *449 * @returns VBox status code.450 * @param pInterface Pointer to the interface structure containing the called function pointer.451 * @param pGstStrmOut Pointer to guest output stream.452 * @param fMute Whether to mute or not.453 * @param uVolLeft Left audio stream volume.454 * @param uVolRight Right audio stream volume.455 */456 DECLR3CALLBACKMEMBER(int, pfnSetVolumeOut, (PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOGSTSTRMOUT pGstStrmOut,457 bool fMute, uint8_t uVolLeft, uint8_t uVolRight));458 459 /**460 * Sets the overall audio volume.461 *462 * @returns VBox status code.463 * @param pInterface Pointer to the interface structure containing the called function pointer.464 * @param fMute Whether to mute or not.465 * @param uVolLeft Left audio stream volume.466 * @param uVolRight Right audio stream volume.467 */468 DECLR3CALLBACKMEMBER(int, pfnSetVolume, (PPDMIAUDIOCONNECTOR pInterface,469 bool fMute, uint8_t uVolLeft, uint8_t uVolRight));470 456 471 457 /**
Note:
See TracChangeset
for help on using the changeset viewer.