# WASAPI Shared mode - buffer size

**URL:** <https://community.cantabilesoftware.com/t/wasapi-shared-mode-buffer-size/4522>\
**Category:** Uncategorized\
**Created:** [July 14, 2019, 9:37am UTC](https://community.cantabilesoftware.com/t/wasapi-shared-mode-buffer-size/4522 "2019-07-14T09:37:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![matejb](https://community.cantabilesoftware.com/letter_avatar_proxy/v4/letter/m/b9bd4f/32.png) [@matejb](https://community.cantabilesoftware.com/u/matejb)\
**Post date:** [July 14, 2019, 9:37am UTC](https://community.cantabilesoftware.com/t/wasapi-shared-mode-buffer-size/4522/1 "2019-07-14T09:37:17Z")

</div>

Hi,  
While I’m using an external audio interface for gigs without problems, I would find it really convenient if I could use the integrated realtek hd (HP EliteBook) output with WASAPI shared mode driver at home when preparing setlists / practicing / transcribing.  
However I can’t seem to get an adequately small buffer size - no matter what I select as buffer size, what C3 gets is 528 samples as shown in the profiler.

From what I read here: [https://docs.microsoft.com/en-us/windows-hardware/drivers/audio/low-latency-audio](https://docs.microsoft.com/en-us/windows-hardware/drivers/audio/low-latency-audio)  
" \* Allow an application to discover the range of buffer sizes (i.e. periodicity values) that are supported by the audio driver of a given audio device. This makes it possible for an application to choose between the default buffer size (10ms) or a small buffer (\<10ms) when opening a stream in shared mode. If an application does not specify a buffer size, then it will use the default buffer size."

It seems like smaller buffer should be possible (but maybe I’m over-simplifying). Any idea whether or not (and how?) I could get at least to 256 samples (or double 128)? Maybe with a different driver - not the realtek one? I tried with the Microsoft one but it was even worse.

What bothers me most - I could get low latency in my 2011 MacBook Pro running Boot Camp but can’t get it on the new EliteBook 840 G6…

Thanks and best regards,  
Matej

---

<div class="post-metadata">

**Author:** ![terrybritton](https://community.cantabilesoftware.com/user_avatar/community.cantabilesoftware.com/terrybritton/32/62_2.png) [@terrybritton](https://community.cantabilesoftware.com/u/terrybritton)\
**Post date:** [July 14, 2019, 11:57pm UTC](https://community.cantabilesoftware.com/t/wasapi-shared-mode-buffer-size/4522/2 "2019-07-14T23:57:12Z")

</div>

Voicemeeter Banana has the ability to set buffer sizes, but it is WDM/KS, not WASAPI. Still, using that as a virtual ASIO might be fruitful. Plus, you would get both audio outputs AND inputs. \*If you get a “robot voice” output, try turning Cantabile’s “power” switch off and then on again so the two programs can attempt again to sync up.

[https://www.vb-audio.com/Voicemeeter/banana.htm](https://www.vb-audio.com/Voicemeeter/banana.htm)

I made a video on setting the buffers in Voicemeeter a few years ago. Here it is:

Terry

---

<div class="post-metadata">

**Author:** ![brad](https://community.cantabilesoftware.com/user_avatar/community.cantabilesoftware.com/brad/32/233_2.png) [@brad](https://community.cantabilesoftware.com/u/brad)\
**Post date:** [July 15, 2019, 2:04am UTC](https://community.cantabilesoftware.com/t/wasapi-shared-mode-buffer-size/4522/3 "2019-07-15T02:04:38Z")

</div>

Hi @matejb

Cantabile doesn’t support the new IAudioClient3 interfaces described by the linked article. Not sure how much is involved in adding support for that. I’ll look into it.

Brad

---

<div class="post-metadata">

**Author:** ![matejb](https://community.cantabilesoftware.com/letter_avatar_proxy/v4/letter/m/b9bd4f/32.png) [@matejb](https://community.cantabilesoftware.com/u/matejb)\
**Post date:** [July 15, 2019, 1:23pm UTC](https://community.cantabilesoftware.com/t/wasapi-shared-mode-buffer-size/4522/4 "2019-07-15T13:23:14Z")

</div>

Terry thanks for letting me know about the Voicemeeter.  
However it is even worse - even with very high buffers there is always distortion or crackling no matter what I choose (WDM, KS, MME, …).  
It seems like the Realtek driver is really messed up. I don’t even get the normal WDM choice in Cantabile, only WASAPI.  
Thanks,  
Matej

---

<div class="post-metadata">

**Author:** ![matejb](https://community.cantabilesoftware.com/letter_avatar_proxy/v4/letter/m/b9bd4f/32.png) [@matejb](https://community.cantabilesoftware.com/u/matejb)\
**Post date:** [July 15, 2019, 1:27pm UTC](https://community.cantabilesoftware.com/t/wasapi-shared-mode-buffer-size/4522/5 "2019-07-15T13:27:28Z")

</div>

@brad thanks very much for your will to look into it. Not being able to simultaneously run cantabile with ~10ms latency and listen to music “to-transcribe” in 2019 is really an unexpected situation coming from mac background… don’t understand how Realtek can possibly exist with this bad drivers…  
Regards,  
Matej

---

<div class="post-metadata">

**Author:** ![terrybritton](https://community.cantabilesoftware.com/user_avatar/community.cantabilesoftware.com/terrybritton/32/62_2.png) [@terrybritton](https://community.cantabilesoftware.com/u/terrybritton)\
**Post date:** [July 16, 2019, 3:39am UTC](https://community.cantabilesoftware.com/t/wasapi-shared-mode-buffer-size/4522/6 "2019-07-16T03:39:31Z")

</div>

That is why cheap ASIO USB interfaces have such a wide customer base. The newest generation of the [Focusrite 2i2](https://www.google.com/search?q=Focusrite+2i2) is possibly your next stop. The difference is like night and day. (It really is in this case!)

Terry

---

<div class="post-metadata">

**Author:** ![brad](https://community.cantabilesoftware.com/user_avatar/community.cantabilesoftware.com/brad/32/233_2.png) [@brad](https://community.cantabilesoftware.com/u/brad)\
**Post date:** [July 16, 2019, 3:48am UTC](https://community.cantabilesoftware.com/t/wasapi-shared-mode-buffer-size/4522/7 "2019-07-16T03:48:09Z")

</div>

Before I take a closer look at this I’m going to do some research to see if there’s now a way to do wasapi audio input/output streaming in a synchronized manner so I can enable WASAPI input in Cantabile. Then, I’ll dive in and see if I can fix both issues at the same time.

---

<div class="post-metadata">

**Author:** ![matejb](https://community.cantabilesoftware.com/letter_avatar_proxy/v4/letter/m/b9bd4f/32.png) [@matejb](https://community.cantabilesoftware.com/u/matejb)\
**Post date:** [July 16, 2019, 12:37pm UTC](https://community.cantabilesoftware.com/t/wasapi-shared-mode-buffer-size/4522/8 "2019-07-16T12:37:12Z")

</div>

Terry thanks. Well it might be the only solution for now but it’s not a money issue really - I do have a spare audio interface - I’d just like to avoid complicating setup and cabling when it should be much simpler. I’m used to having macs that could do things like this since 2007.

Brad, thanks. Looking forward to a solution.  
regards,  
Matej

---

<div class="post-metadata">

**Author:** ![terrybritton](https://community.cantabilesoftware.com/user_avatar/community.cantabilesoftware.com/terrybritton/32/62_2.png) [@terrybritton](https://community.cantabilesoftware.com/u/terrybritton)\
**Post date:** [July 18, 2019, 2:01am UTC](https://community.cantabilesoftware.com/t/wasapi-shared-mode-buffer-size/4522/9 "2019-07-18T02:01:42Z")

</div>

I think those darn Macs spoiled you!

The rest of us (PC users, that is) take it for granted that we will require the few extra cables and a USB cord at performances. So much so that it doesn’t even register as an inconvenience. Windows audio has ALWAYS been crap, though they are slowly (too slowly, IMHO) improving it.

Terry
