getmusicbee.com

Support => Questions => Topic started by: gaiastar on February 23, 2021, 07:19:25 AM

Title: Question about audio setting and wasapi playback quality noob question?
Post by: gaiastar on February 23, 2021, 07:19:25 AM
Hi
I use musicbee in wasapi shared mode , realtek high definition
but I have noticed my realtek setup is on 24bit 48000 sample rate

may I ask 2 questions ?
1)
should i set to 24 and 44.100 sample rate ,seeing I play only 44.100 audio  ?

2)does the playback (when i play my audio) sound worse  with my internal audio card setup at 24 and 48000  ?

thanks
(https://i.imgur.com/8bTjLHf.png)
(https://i.imgur.com/89XkEOQ.png)
(https://i.imgur.com/QivykgC.png)
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: hiccup on February 23, 2021, 08:11:23 AM
In your user case with those settings all your music will be resampled.
Resampling will never improve the sound quality.
But you are the only one that can tell if you are able to hear any degradation.
If you are concerned about bitperfect playback, use exclusive mode, not shared.
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: gaiastar on February 23, 2021, 08:14:22 AM
In your user case you with that settings all your music will be resampled.
That will never improve the sound quality.
You are the only one that can tell if you are able to hear a difference.
If you are concerned about bitperfect playback, use exclusive mode, not shared.
hi
I could lower and setup at 24bit and 44.100 ,in this case i won't resample right?
my I know your suggest ? Or your audio card settings?
thanks,appreciate it
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: hiccup on February 23, 2021, 08:20:56 AM
Correct, 24/44.1 won't decrease your sound quality.
I use wasapi exclusive when I want to listen to music without doubts on quality or the music getting interrupted by other sources.
And I use shared when I am in some multi-tasking mode.
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: gaiastar on February 23, 2021, 08:22:38 AM
Correct, 24/44.1 won't decrease your sound quality.
I use wasapi exclusive when I want to listen to music without doubts on quality or the music getting interrupted by other sources.
And I use shared when I am in some multi-tasking mode.
hi
but how have you setup your audio card please
thanks !
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: hiccup on February 23, 2021, 08:28:44 AM
but how have you setup your audio card please
I have a couple that have different purposes and capabilities. It is of no use to others to share my settings for them.
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: vincent kars on February 23, 2021, 10:54:32 AM
Resampling won’t improve sound quality but it can and should be done without introducing any audible or even measurable artifacts.
Unfortunately this is not the case in Win.
http://archimago.blogspot.com/2015/11/measurements-windows-10-audio-stack.html

At first the up-sampling was suspected. Later it turned out to be an artifact of the limiter (CAudioLimiter)
https://matthewvaneerde.wordpress.com/2011/05/11/linearity-of-windows-volume-apis-iaudiometerinformation-and-full-scale-signals/

As Hiccup already pointed out, you can avoid all of this by using WASAPI/Exclusive.
If not (not all players support this), just avoid the limiter to kick in.
This can be done in Musicbee by  using the equalizer and lower the pre-amp with 4 dB

Bit more detail: https://www.thewelltemperedcomputer.com/KB/DirectSound.htm
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: gaiastar on February 23, 2021, 02:52:06 PM
Resampling won’t improve sound quality but it can and should be done without introducing any audible or even measurable artifacts.
Unfortunately this is not the case in Win.
http://archimago.blogspot.com/2015/11/measurements-windows-10-audio-stack.html

At first the up-sampling was suspected. Later it turned out to be an artifact of the limiter (CAudioLimiter)
https://matthewvaneerde.wordpress.com/2011/05/11/linearity-of-windows-volume-apis-iaudiometerinformation-and-full-scale-signals/

As Hiccup already pointed out, you can avoid all of this by using WASAPI/Exclusive.
If not (not all players support this), just avoid the limiter to kick in.
This can be done in Musicbee by  using the equalizer and lower the pre-amp with 4 dB

Bit more detail: https://www.thewelltemperedcomputer.com/KB/DirectSound.htm

Hi @vincent kars
really great links ,very very interesting reading
thanks Vincent
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: sveakul on February 23, 2021, 05:09:07 PM
but how have you setup your audio card please
thanks !
gaiastar:  If you use wasap-exclusive it makes no difference how your audio card is setup in Windows.  Whatever the sample rate and bitrate is of the original file is what will be passed along to the audio drivers, which is a good thing.  The only issue would be if you have audio files whose rates are not supported by your audio card/chipset (usually rare).  In those cases, when bass.dll receives that information back it will resample on its own to a supported rate, as the alternative would be hearing no audio at all.
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: gaiastar on February 23, 2021, 05:12:09 PM
but how have you setup your audio card please
thanks !
gaiastar:  If you use wasap-exclusive it makes no difference how your audio card is setup in Windows.  Whatever the sample rate and bitrate is of the original file is what will be passed along to the audio drivers, which is a good thing.  The only issue would be if you have audio files whose rates are not supported by your audio card/chipset (usually rare).  In those cases, when bass.dll receives that information back it will resample on its own to a supported rate, as the alternative would be hearing no audio at all.
Hi Sveakul
but I like to play music while i'm working
and I need to hear other operation system sound , like incoming e-mails or incoming photne calls
I guess it's much better if i setup the soundcard to 24bit and 44.100
if I need an audio editor tool , i can always use in exlusive mode
sadly audacity doesn't support it (wasapi exlusive mode)
thanks
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: frankz on February 23, 2021, 05:46:14 PM
sadly audacity doesn't support it (wasapi exlusive mode)
thanks
Of course it does (https://manual.audacityteam.org/man/devices_preferences.html).

Have a great day!
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: gaiastar on February 23, 2021, 06:11:52 PM
sadly audacity doesn't support it (wasapi exlusive mode)
thanks
Of course it does (https://manual.audacityteam.org/man/devices_preferences.html).

Have a great day!
hi
i use audacity in wasapi , but I can't setup in exlusive mode , it works in shared more
it's enough to play a song with musicbee load a audio in audacity with wasapi and click play , musicbee &  audacity still play audios
I have read in the audacity forum how to setup in exclusive mode ,but seem lots of user can 't use it
thanks , take care
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: hiccup on February 23, 2021, 06:22:28 PM
Have you done this?:
(https://i.imgur.com/3Qm791W.png)
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: gaiastar on February 23, 2021, 06:26:18 PM
Have you done this?:
(https://i.imgur.com/3Qm791W.png)
Hi
yes , exactly the same , but my language is different
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: hiccup on February 23, 2021, 06:36:00 PM
So to be clear,
With those Windows setting, and with MusicBee set to use Wasapi Exclusive:

You start MusicBee playing. Then you start Audacity playing.
Then MusicBee keeps playing uninterrupted, together with Audacity?

That makes me wonder if MusicBee was using (granted) exclusive mode in the first place.
That looks like some issue.
Maybe driver issues? Other audio software or tools interfering/conflicting?

Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: gaiastar on February 23, 2021, 06:45:48 PM
So to be clear,
You start MusicBee playing. Then you start Audacity playing.
Then MusicBee keeps playing uninterrupted, together with Audacity?
Hi
yes , they keep playing together , MusicBee keeps playing uninterrupted and audacity
but if I use goldwave 5.70 32bit (Love this software and I bought it ) and i have tried goldwave 64bit , audacity cc wasapi , and another editor software i have tried
as soon I start an editor above , musicbee stops to play and give me a bass error
so they work in wasapi exlusive , not audacity
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: hiccup on February 23, 2021, 06:51:53 PM
yes , they keep playing together , MusicBee keeps playing uninterrupted and audacity

Strange. When I do that Audicity will not play and displays an 'Error opening sound device'.
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: gaiastar on February 23, 2021, 07:31:49 PM
yes , they keep playing together , MusicBee keeps playing uninterrupted and audacity

Strange. When I do that Audicity will not play and displays an 'Error opening sound device'.
hi maybe it's the your audiocard on your motherboard  ,with a scarlett audacity  , with others no
I use audacity portable maybe it's why i doesn't use wasapi exclusive
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: hiccup on February 23, 2021, 07:49:11 PM
To be honest I'm not sure my Audacity is indeed playing back in exclusive mode.
When Audacity plays, and I then start MusicBee, Audacity stops.
If it was playing in exclusive mode I am guessing MusicBee would throw an error.

But what I find very strange in your case is that MusicBee seems to get kicked out of exclusive mode when you start Audacity.
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: sveakul on February 24, 2021, 02:03:14 AM
To be honest I'm not sure my Audacity is indeed playing back in exclusive mode.
When Audacity plays, and I then start MusicBee, Audacity stops.
If it was playing in exclusive mode I am guessing MusicBee would throw an error.
Same here--when MusicBee starts (using exclusive), Audacity (set to "Wasapi") just stops and MB plays.

I use audacity portable maybe it's why i doesn't use wasapi exclusive
My Audacity is portable too, but so is my MB and 2 other players that definitely are in wasapi-exclusive, so that wouldn't seem to be a factor
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: gaiastar on February 24, 2021, 05:51:40 AM
Same here--when MusicBee starts (using exclusive), Audacity (set to "Wasapi") just stops and MB plays.
hi
why don't you try vice versa ?
run Audacity (set to "Wasapi") , open a audio file and click play and after start musicbee , and let see who stops to play
if musicbee stops means audacity work in wasapi exlusive
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: sveakul on February 24, 2021, 06:19:28 AM
hi
why don't you try vice versa ?
run Audacity (set to "Wasapi") , open a audio file and click play and after start musicbee , and let see who stops to play
if musicbee stops means audacity work in wasapi exlusive

I'm sorry, my wording wasn't the best.  That's what I DID do,  I should have said "While Audacity was playing set to 'Wasapi', when MusicBee is started (using exclusive), Audacity just stops and MB plays."  If you then hit the "play" button again on Audacity, you get the message that the device is already in use.  So if Audacity is really using exclusive, it is somehow "surrendering" that priority to MusicBee if it is also using exclusive.

Now I'm going to listen to some Gentle Giant and let others figure out what's going on, haha..
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: vincent kars on February 24, 2021, 11:33:23 AM
All you can do in Audacity 2.4.2 is selecting WASAPI.
You can't select Shared or Exclusive so it is either one or the other.
What sveakul describes point to Audacity using Shared mode.

https://forum.audacityteam.org/viewtopic.php?t=113988
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: hiccup on February 24, 2021, 12:04:10 PM
A solution to make sure you can use different audio applications without them interfering would be to add a second (usb) soundcard.
Then the applications can work completely isolated from each other. (it's what I am doing with Audacity)
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: sveakul on February 24, 2021, 06:55:39 PM
All you can do in Audacity 2.4.2 is selecting WASAPI.
You can't select Shared or Exclusive so it is either one or the other.
What sveakul describes point to Audacity using Shared mode.

https://forum.audacityteam.org/viewtopic.php?t=113988

That was an "interesting" link..  it seems the admin isn't real clear on what wasapi-exclusive actually is, as he says to set the sample rate for the device to match the project.  If Audacity actually was using exclusive, it wouldn't make any difference WHAT the device sample rate was set at. As you said, the experience posted by hiccup and confirmed by me show "shared" mode.

Hiccup's suggestion to add a second soundcard would cover all  bases for gaiastar.
Title: Re: Question about audio setting and wasapi playback quality noob question?
Post by: hiccup on February 24, 2021, 07:08:58 PM
That was an "interesting" link..

Hiccup's suggestion to add a second soundcard would cover all  bases for gaiastar.

I wouldn't be surprised if the OP of that thread was the same as 'our' OP…

If the analogue quality of a secondary soundcard is not too relevant, a usb soundcard around $10/20,- could already do the job, since Audacity's editing could stay within the digital audio domain.