XAudio | origin commit | Hacking library
kandi X-RAY | XAudio Summary
kandi X-RAY | XAudio Summary
origin commit
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Internal loop
- Send short data to the wave time
- Calculate real volume
- Retrieves an AudioTrack instance from the RadioPlayer
- Resolves the recorder
- Encodes the given read buffer to the given file output stream
- Start recording
- Write wav file header
- Copy a list
- Resolve the wave data
- Deep copy
- Seek to the given time
- Initialize the listener
- Resolve stop menu
- Start notification
- Create item
- On AudioFocus change
- Resolves pause button
- Called when receiving audio
- Create the View
- Initializes the waveView
- Initializes the bt
- Update color color
- Initialize wave view
- On bind view holder
- Initializes the music manager
XAudio Key Features
XAudio Examples and Code Snippets
Community Discussions
Trending Discussions on XAudio
QUESTION
I've decided to try the DirectXTK12 audio and it's working fine except for the 3D sound. I'm following the guide from wiki but the sound is always in the left speaker no matter how I position the listener/emitter. What's wrong? My code looks like this:
...ANSWER
Answered 2021-Apr-11 at 07:51I've fixed the issue by converting used Sound.wav to mono (1 channel) sound.
QUESTION
I want to develop against a low-level audio API that I can expect to already be on Windows 7.
This link: XAudio2 Versions
says (emphasis mine)
XAudio2 is a cross-platform API that has shipped for use on Xbox 360 as well as versions of Windows, including Windows XP, Windows Vista, Windows 7
But it also says:
XAudio 2.7 and earlier (Windows 7)All previous versions of XAudio2 for use in apps have been provided as redistributable DLLs in the DirectX SDK.
So which is it? Is it on Windows 7 by default, or do I need to distribute DirectX with my installer? Or, since Windows 7 apparently includes DirectX 11 though I haven't found an official source for that information, perhaps I just need to develop against the legacy DirectX API but won't need to include its distributables?
...ANSWER
Answered 2019-Dec-06 at 10:12This is already answered by the rest of the MSDN page:
XAudio2 version 2.9 ships as part of Windows 10, XAUDIO2_9.DLL, alongside XAudio2.8 to support older applications, and does not require redistribution.
XAudio2 version 2.8 ships today as a system component in Windows 8, XAUDIO2_8.DLL. It is available “inbox” and does not require redistribution with an app. We recommend to use the Windows Software Development Kit (SDK) for Windows 8 to develop against XAudio2; the Windows SDK for Windows 8 contains the necessary header and import library for statically linking against XAUDIO2_8.DLL.
All previous versions of XAudio2 for use in apps have been provided as redistributable DLLs in the DirectX SDK. The first version of XAudio2, XAudio2 2.0, shipped in the March 2008 release of the DirectX SDK. The last version to ship in the DirectX SDK was XAudio2 2.7, available in the last release of the DirectX SDK in June 2010.
TL;DR: XAudio is not included with Windows 7. XAudio 2.7 is the last version that supports Windows 7. Use of XAudio 2.7 requires the legacy DirectX SDK and the legacy DirectSetup End-User Runtime Redist package.
See XAudio2 and Windows 8, The Zombie DirectX SDK and Not So Direct Setup
UPDATE: There's now a way to use the latest XAudio 2.9 on Windows 7. See Microsoft Docs.
QUESTION
I'm developping a C++ game engine based on Direct3D 9 and XAudio 2.7. And I have the same problem everytime I exit my test game : XAudio crashes. I'm sure it's this particular component that is causing the problem because when I remove the call to initialization, the game quits without any problems.
I don't know why, I've set up all the base code (initialization, mastering voice, audio components, clear all buffers and shutdown with ->Release();), tried with and without XAudio 3D...
If you've already experienced that, you're welcome to help. Thanks.
I'm running Windows 10 Pro 64-bits
Code :
...ANSWER
Answered 2019-Dec-06 at 10:11A key thing to remember about XAudio2 is that a lot of the functionality is async, and you the app developer are responsible for keeping the source audio memory 'alive' until XAudio2 is done with it. As such, you have to be very careful about lifetimes and shutdown.
You might want to take a look at DirectX Tool Kit for Audio which has a basic audio manager and playback system for XAudio2.
The issue you are describing sounds a lot like this lifetime issue with XAudio 2.7: See this blog post for the details and workaround.
There's not a lot of value in support Windows Vista, but Windows 7 Service Pack 1 still requires using XAudio 2.7 and the legacy DirectX SDK and the legacy DirectSetup REDIST. If your minimum was Windows 8.x or Windows 10, then you could count on XAudio 2.8 or 2.9 being available as part of the OS. For the details here, see this blog post.
UPDATE There's now a way to use the latest XAudio 2.9 on Windows 7. See Microsoft Docs.
QUESTION
To provide a little bit of context. I am trying to output live audio from a camera in my c# application. After doing some research it seems pretty obvious to do it in a c++ managed dll. I chose the XAudio2 api because it should be pretty easy to implement and use with dynamic audio content.
So the idea is to create the XAudio device in c++ with an empty buffer and push in the audio from the c# code side. The audio chunks are pushed every 50ms because I want to keep the latency as small as possible.
...ANSWER
Answered 2017-Oct-23 at 06:30XAudio2 does not copy the source data buffer at the time you submit it via SubmitSourceBuffer
. You must keep that data (which is in your application memory) valid, and the buffer allocated for the entire time that XAudio2 will need to read out of it to process the data. This is done for efficiency to avoid the need for an extra copy, but puts the multi-threaded burden of keeping the memory available until it's done playing on you. That also means you can't modify the playing buffer.
Your current code is just reusing the same buffer which is causing the popping as you change the data while it's play. You can solve this with having 2 or three buffers you rotate between. A XAudio2 Source Voice has status information you can use to determine when it's done playing a buffer, or you can register for explicit callbacks which tell you when the buffer is no longer being used.
See DirectX Tool Kit for Audio and classic XAudio2 samples for examples of using XAudio2.
QUESTION
I have an ajax script that submits a form on button click, the script appends the form data to the URL while submitting which isn't safe by any standard, the script works well for other forms except the one am currently debugging. just reloads the page with an annoyingly long URL.
edited: added form method ="post" to the form but still not working. solve url issue though
this is my ajax script:
...ANSWER
Answered 2017-Sep-11 at 01:07Don't forget to add an event.preventDefault()
line to avoid having the browser perform the default behavior, which is reloading page on submit.
Try something like
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install XAudio
You can use XAudio like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the XAudio component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page