[haiku-bugs] Re: [Haiku] #9134: Adjustable stream parameters for HDA driver

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Thu, 16 Apr 2015 05:05:11 -0000

#9134: Adjustable stream parameters for HDA driver
---------------------------------+------------------------------
Reporter: Pete | Owner: korli
Type: enhancement | Status: new
Priority: normal | Milestone: R1
Component: Drivers/Audio/HDA | Version: R1/alpha3
Resolution: | Keywords: HDA audio driver
Blocked By: | Blocking:
Has a Patch: 1 | Platform: All
---------------------------------+------------------------------

Comment (by pulkomandy):

I see two things to improve:
* This problem is global to all sound card drivers, so a solution should
be implemented on Media Server side instead of a separate setting file for
each driver
* It should be possible to guess a "good" buffer size. I think we have a
size defined in bytes for the buffers now, we should define the size in
microseconds or so, so changing the sample rate would not need adjusting
the buffer size.

I owuld try, as much as possible, to make this "just work" by computing a
reasonable buffer size. This means, no user-visible settings in media
preferences. But advanced settings in a settings file is probably ok. Or,
something accessible from the Media Kit API, so apps can adjust their own
settings as needed (I would think the needs are different in different
uses, for example MediaPlayer vs some MIDI driven synth).

--
Ticket URL: <https://dev.haiku-os.org/ticket/9134#comment:7>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: