flat assembler
Message board for the users of flat assembler.
Index
> Windows > WASAPI or APO for Delay effect |
Author |
|
Overclick 31 Oct 2020, 23:45
Hi
I need help to add Delay effect for exist audio stream on default output device. I know how to capture sound from rendered stream but I need to mute it somehow to render it back with required delay. Seems it's impossible via WASAPI, am I right? Then I need some simplest way to patch APO for default device and use it somehow. Too difficult for me... Can someone help? I using "Equalizer APO" project as engine for my own. I tried to read source of it, but it's too large and complicated My project: https://sourceforge.net/projects/stereo-to-7-1-converter/ |
|||
31 Oct 2020, 23:45 |
|
Overclick 05 Nov 2020, 16:40
Is it too difficult for assembler community?
|
|||
05 Nov 2020, 16:40 |
|
Overclick 06 Nov 2020, 02:09
Loop-back is a way to get played sound. I cannot do much with it. Even if I radically drop the volume instead of mute, all of this operations would be projected to my own stream session. Windows lets to control partially but own session only. If I settle all sound -100dB and own stream +100dB it would be overloaded any way. The only way for WASAPI I see is return my own stream by different subsystem like ASIO but it is very bad solution any way. VST plugins works for own session only I think.
|
|||
06 Nov 2020, 02:09 |
|
Furs 06 Nov 2020, 13:13
If you want to make it system-wide you'll probably need to write a driver. I don't know anything about Windows drivers or subsystems, just the APIs.
I know there are companies that make system-wide callibration software and they all require you to install a driver. They also have plugin versions of course, and those don't, but those can only be used in an application supporting that plugin interface (e.g. VST). |
|||
06 Nov 2020, 13:13 |
|
Overclick 07 Nov 2020, 02:54
Seems SndVol.exe controls different sessions, I should try to investigate that mechanics...
|
|||
07 Nov 2020, 02:54 |
|
donn 07 Nov 2020, 18:40
Possibly with an Exclusive Mode stream?
https://docs.microsoft.com/en-us/windows/win32/coreaudio/exclusive-mode-streams?redirectedfrom=MSDN I'm sure you have this link, but then it's a matter of leveraging WASAPI https://docs.microsoft.com/en-us/windows/win32/coreaudio/volume-controls Also, assuming your existing audio stream is from another app, not being recorded i.e. from a mic right? https://stackoverflow.com/questions/12922930/c-how-can-i-capture-sound-from-the-microphone Last time I worked with WASAPI was just on computing Karplus Strong, will revisit this soon. What you're trying to achieve may not be too straightforward, as the link below suggests. They also provided the Exclusive Mode suggestion: https://stackoverflow.com/questions/6007716/mute-other-applications-sound-when-my-application-is-playing-a-sound |
|||
07 Nov 2020, 18:40 |
|
Overclick 07 Nov 2020, 19:12
No, I'm looking for a loopback mode, not mic. I cannot do anything globally as loopback is my source. My own stream going through that rules too.
I need to mute (almost mute) volume in all processes sessions exept own one. sndvol.exe "Default windows Mixer" can control all sessions. Step by step: 1) Start own stream 2) Get info about running sessions 3) Drop their volume to almost zero (exept own) 4) Copy audio buffers of each session to workplace (exept own) 5) Add audio effects, correct back level of volume 6) Return the sound by own stream Windows provides some volume control of audio sessions but not sure I can loopback them separatelly. Maybe that is problem too. Also Exclusive Mode disconnects everything else then I'll lose my source. |
|||
07 Nov 2020, 19:12 |
|
DimonSoft 07 Nov 2020, 21:10
Overclick wrote: I need to mute (almost mute) volume in all processes sessions exept own one. <OffTop>I hope I’ll never meet such program. What if two programs (or two instances of the same program) want to do that?</OffTop> |
|||
07 Nov 2020, 21:10 |
|
Overclick 07 Nov 2020, 21:49
DimonSoft wrote:
Want to do what? Run the same kind of audio effect twice? I hope I'll never meet such kind of users like you that f.. my brain before see anything finalized. 1) My prog is checking for quantity of instances. 2) Sessions can be choosen. 3) Levels can be virtualized. 4) Sessions can be regrouped and emulated. 5) Some of progs use own virtual driver or APO patch. There is more chance to meet the same doing progs. p.s. По делу есть что сказать или снова режим троллинга включил? |
|||
07 Nov 2020, 21:49 |
|
DimonSoft 08 Nov 2020, 10:23
Answering the question “What if two programs did this?” is an important step in evaluation of a feature or design request. If you’re not willing to be notified of possible problems, you’d better state it before asking questions.
As for the Russian part of your message and trying to call me a troll, I’d say this message is a better example of trolling: Overclick wrote: Is it too difficult for assembler community? Did you ever notice other people who ask for help here get it much faster? Life is hard if everyone around you is an enemy. |
|||
08 Nov 2020, 10:23 |
|
Overclick 08 Nov 2020, 11:08
Quote:
Will you tell me that? It's funny, considering how you assert yourself in empty conversations off topic, not just in my threads. I'm part of this community too and it is difficult for me. Sorry to let your big person read that horrible question. Just ignore me please. |
|||
08 Nov 2020, 11:08 |
|
bitRAKE 08 Nov 2020, 14:14
Sorry, for being off topic.
DimonSoft wrote: Did you ever notice other people who ask for help here get it much faster? _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
08 Nov 2020, 14:14 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.