IXAudio2SourceVoice interface
Use a source voice to submit audio data to the XAudio2 processing pipeline.You must send voice data to a mastering voice to be heard, either directly or through intermediate submix voices.
Members
The IXAudio2SourceVoice interface inherits from IXAudio2Voice. IXAudio2SourceVoice also has these types of members:
Methods
The IXAudio2SourceVoice interface has these methods.
| Method | Description |
|---|---|
| Discontinuity |
Notifies an XAudio2 voice that no more buffers are coming after the last one that is currently in its queue. |
| ExitLoop |
Stops looping the voice when it reaches the end of the current loop region. |
| FlushSourceBuffers |
Removes all pending audio buffers from the voice queue. |
| GetFrequencyRatio |
Returns the frequency adjustment ratio of the voice. |
| GetState |
Returns the voice's current cursor position data. |
| SetFrequencyRatio |
Sets the frequency adjustment ratio of the voice. |
| SetSourceSampleRate |
Reconfigures the voice to consume source data at a different sample rate than the rate specified when the voice was created. |
| Start |
Starts consumption and processing of audio by the voice. Delivers the result to any connected submix or mastering voices, or to the output device. |
| Stop |
Stops consumption of audio by the current voice. |
| SubmitSourceBuffer |
Adds a new audio buffer to the voice queue. |
Remarks
Platform Requirements
Windows 10 (XAudio2.9); Windows 8, Windows Phone 8 (XAudio 2.8); DirectX SDK (XAudio 2.7)
Requirements
|
Header |
|
|---|---|
|
Library |
|
See also
- IXAudio2Voice
- XAudio2 Interfaces
- How to: Use Source Voice Callbacks
- How to: Stream a Sound from Disk
- How to: Change Voice Pitch