Re: Default device frequency changes between calls.
Troy Watson <[email protected]> Wed, 9 Jan 2013 12:48:05 +1000
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <CAFGK7-FAE8fWsjY-=cYqmi05u-sdcFWuzxRue1Q4HwVuyNkSaw@mail.gmail.com> |
--===============1127824281== Content-Type: multipart/alternative; boundary=14dae93b608e7c74d904d2d2173a --14dae93b608e7c74d904d2d2173a Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jan 9, 2013 at 12:25 PM, Chris Robinson <[email protected]>wrote: > > > That would likely be PulseAudio's fault. Starting with version 2, it added > the ability to change the playback frequency depending on what the app > wants. By default OpenAL Soft specifies PA_STREAM_FIX_RATE, which basically > tells Pulse "I don't care, just give me whatever's in use". When it does > that while nothing's playing, it'll give back either 44.1khz or 48khz for > most people. > > I find that behavior rather annoying personally, since it won't try to > change the playback rate while playing. So if you have one app that > requests a 44100hz stream and another that requests a 48000hz stream, the > actual device output will depend on the order the two sounds are started > in, and then stay that way until all streams stop. Plus the behavior of > apps that don't strictly care will change depending on what was last set > and how long ago it was set (I've noticed OpenAL Soft will get 44100hz for > a while after Flash has played sound, and eventually get 48000hz some time > after Flash has stopped). > Yes, that is rather annoying! Again, thanks to you for the excellent feedback and help you provide on the mailing list. --14dae93b608e7c74d904d2d2173a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div class=3D"gmail_quote">On Wed, Jan 9, 2013 at 12:25 PM, Chris Robinson = <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_bl= ank">[email protected]</a>></span> wrote:<blockquote class=3D"gmail_q= uote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1e= x"> <div class=3D"im"> <br></div> That would likely be PulseAudio's fault. Starting with version 2, it ad= ded the ability to change the playback frequency depending on what the app = wants. By default OpenAL Soft specifies PA_STREAM_FIX_RATE, which basically= tells Pulse "I don't care, just give me whatever's in use&quo= t;. When it does that while nothing's playing, it'll give back eith= er 44.1khz or 48khz for most people.<br> <br> I find that behavior rather annoying personally, since it won't try to = change the playback rate while playing. So if you have one app that request= s a 44100hz stream and another that requests a 48000hz stream, the actual d= evice output will depend on the order the two sounds are started in, and th= en stay that way until all streams stop. Plus the behavior of apps that don= 't strictly care will change depending on what was last set and how lon= g ago it was set (I've noticed OpenAL Soft will get 44100hz for a while= after Flash has played sound, and eventually get 48000hz some time after F= lash has stopped).<br> </blockquote><div><br></div><div>=A0</div><div>Yes, that is rather annoying= !=A0Again, thanks to you for the excellent feedback and help you provide on= the mailing list.</div></div> --14dae93b608e7c74d904d2d2173a-- --===============1127824281== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal --===============1127824281==--