[gmpi] Re: Reqs Discuss: 1-11

  • From: Tim Hockin <thockin@xxxxxxxxxx>
  • To: gmpi@xxxxxxxxxxxxx
  • Date: Wed, 19 Nov 2003 15:13:41 -0800

On Wed, Nov 19, 2003 at 09:22:00AM -0500, Angus F. Hewlett wrote:
> We're not talking about changing sample rate during streaming, just
> between streaming sessions.

The best reason I can see for making restrictions on sample-rate changes is
simplicity.

If you must provide it at instantiation, then the plugin has exactly one
code path that handles it.  There are questions that get answered easily:
* What is the sample rate before you set the sample rate?
* When can you change the sample rate
* What if you change it to something I am not willing to support?

You don't have to deal with converting anything, if you don't want.  You
don't have to have any sample-rate specific code except in your init
function.


Other than pure simplicity, I don't have any attachment to it.  Any real
reason NOT to do it that way?

----------------------------------------------------------------------
Generalized Music Plugin Interface (GMPI) public discussion list
Participation in this list is contingent upon your abiding by the
following rules:  Please stay on topic.  You are responsible for your own
words.  Please respect your fellow subscribers.  Please do not
redistribute anyone else's words without their permission.

Archive: //www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: