Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish audio tutorials #82

Closed
walbourn opened this issue Mar 10, 2017 · 10 comments
Closed

Finish audio tutorials #82

walbourn opened this issue Mar 10, 2017 · 10 comments
Labels
audio Related to DirectX Tool Kit for Audio documentation

Comments

@walbourn
Copy link
Member

walbourn commented Mar 10, 2017

The section of on using positional audio is UNDER CONSTRUCTION.

Also add section on using SoundStreamInstance to Playing sounds tutorial

@PeteHuf
Copy link

PeteHuf commented May 16, 2017

In addition to positional audio, I haven't found anything about streaming audio. It looks like all the normal ways of playing the sound from the WaveBank only work for in-memory.

@walbourn
Copy link
Member Author

walbourn commented May 16, 2017

I've not implemented a streamer for DirectX Tool Kit as of yet. You can find some code for doing async streaming from XACT wave banks in PCM format here. ADPCM and xWMA streaming are trickier to implement.

@PeteHuf
Copy link

PeteHuf commented May 16, 2017

Thanks for the info! I'd missed that other task. I don't have a pressing need, but I'd like to stream ADPCM before I release (which realistically, is probably a few years out). Any chance DirectX Tool Kit will support ADPCM streaming in that time frame?

@walbourn walbourn added the audio Related to DirectX Tool Kit for Audio label Mar 14, 2018
@amerkoleci
Copy link

Dunno if this is the correct topic, did you even thought on replacing the XAudio backend with WASAPI? What are the performance tho on XAudio?

@walbourn
Copy link
Member Author

walbourn commented Jun 20, 2018

WASAPI is appropriate if you have your own mixer and can provide whatever source-rate that WASAPI requires, and is often used by game audio middleware like FMOD, MSS, WWise, etc. because their software does all the real-time mixing, source-rate conversion, etc. XAudio2 in fact uses WASAPI for output of the final mix too.

XAudio2 does the source-rate conversion, real-time mixing, and optionally applies digital signal processing before submitting it to WASAPI for play. They are solving different problems.

The DirectX Tool Kit for Audio is just a collection of management classes to simplify using XAudio2 based on the design of the XNA Game Studio framework.

@amerkoleci
Copy link

I see, thanks for explanation.

@walbourn
Copy link
Member Author

@PeteHuf I'm working on a update to DirectX Tool Kit for Audio with support for streaming from XACT3-style WaveBanks. See this PR.

@PeteHuf
Copy link

PeteHuf commented Apr 26, 2020

@walbourn thanks for keeping me posted! I've switched over to WWise for now, but if that ends up no longer suiting my needs I'll be sure to take another look at DXTK's audio.

@walbourn
Copy link
Member Author

walbourn commented May 3, 2020

split playing sounds & wavebank tutorial pages, and added streaming to the wavebank page.

@walbourn
Copy link
Member Author

walbourn commented Apr 9, 2021

Added tutorial on positional audio here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio Related to DirectX Tool Kit for Audio documentation
Projects
None yet
Development

No branches or pull requests

3 participants