Audio improvements #1491
Replies: 5 comments 1 reply
-
The Audio and Media backend has been refactored with some parts rewritten and many of the issues are resolved/fixed. As for documentation, the public API is basically XNA. However the audio behaves 'as should be'. About XACT, I am not going to pursue completing the Xact implementation. My understanding is that we need:
|
Beta Was this translation helpful? Give feedback.
-
that Concertermediaplayer looks looks good. DynamicSoundEffectInstance i put two days research into it and most of the info are based from opiions of many people and the code , is in a long chatbot4o convo. i can share it before anyone spends time on it ii think got the best way at this point. if it compiles. it does look right. it makes some kind of wild guesses but combined with existing code it should be < 1 week. vlcapi might work for multiple songs ink. each needs a window.. i never used more than one. the others sounds can an should be on a fast bkthread. with no locks .. i spend yesterday and a few hours today generating code with the newest chatgpt4o and after its 3 days old its got pretty good. much is based on this.. i think that could be the implementation moving forward from XNA . **int[ DirectTK](https://github.com/microsoft/DirectXTK/wiki/Audio/0881aee2d2522b8faccc48639e3e4de5ebeaec72 This has an AudioEngine abstraction we can build over**. it has all you mentioned except for Cues. they dropped the XACT format, and cues but keep the wave bank and voice and mixers. i think OpenALSoft is used now instead of OpenAL. there are some available hardware implementations of the various filters. i grilled the bot on that. we took the latest chatgpt0 without even the codex and it did a decent job generating avalonia voice to text and hotword changing project thte digs all the way into the other deeper COM api that is newer.. IXAudio2 i t made wrappers or used silk. o but asked it to mix 2 effects in bothe OpenAL and XAudio2 using silk wrapper and generating wrappers using the cswinapi official tools its all c# but unsafe. I had it try the DirectTK later, i would send the convo but its too long but ill have a try at this, or if someone else does ill send the convo... and tons of links threre a 8 + hours of reddits and other threads about DSPs and all thius. ill see if tiis builds its SEEMS to be getting really useful... for a 3 day old LLM. im not using the codex either just getting it to code on the main chat. the thing even trained me a hotwork using NWave and then went deep to the guts of windows to change their horrible but almost good Voice Access but it is offline. wire some agents to it and its great. So im building a windows assistant on this , for hands free UI. on the same convo but i think all the basic good needed its given. at least mabye via a test rig. then we can put the two versions in Concretlayers... |
Beta Was this translation helpful? Give feedback.
-
Great find. They have a Wavebank implementation for xaudio that can do in-memory and streaming, as I described above. |
Beta Was this translation helpful? Give feedback.
-
Recently I ported the Ship sample and I had to disable all the xact code in it. It had this .xap (?) format to import sounds. Posibly we could implement a wavebank importer to read from content xml file. |
Beta Was this translation helpful? Give feedback.
-
I think some of the things Damian mentioned are a bit more technical than I can handle at the moment hahaha. For playing songs, I always saw recommendations to use MediaPlayer with Monogame, but it also seemed quite limited to me. Not only because you couldn't apply effects or things like that, but also because you couldn't transition between two songs (or play two at the same time), it looped a bit poorly (I didn't have that problem when playing with sound effects), and things like that led me not to want to use it at the time. I also remember seeing the source code of games like Terraria or Stardew Valley, which had XACT implementations inside, although if I recall correctly, they were modified versions of XACT (with things I didn't have with the AudioEngine that came with Monogame). I'm not sure if this info is helpful at all xD The idea of a new API sounds tempting, but it also sounds like a lot of work. I don't want to complicate your life over just a doubt I had hahaha. Greetings!! |
Beta Was this translation helpful? Give feedback.
-
Hello!!
I have come to KNI and I found it to be a quite interesting project for those people like me who come from monogame.
With monogame I found quite a few limitations regarding the audio, mainly for the songs. XACT generated several bugs for me when using it (especially with CUEs), the MediaPlayer class seemed a bit limited to me (for example, I couldn't loop songs correctly or apply effects) and I imagine the soundeffects would not be suitable for songs of considerable length. Reading the posts, they mostly come to the conclusion that the ideal thing to do is to use third-party libraries like NAudio or others.
What state is the audio section in KNI? Is there a document where I can read more about it? If I had to play a song on KNI, what would you recommend I use?
Thanks in advance!!!
Beta Was this translation helpful? Give feedback.
All reactions