SGladys / mediacomp-jes

Automatically exported from code.google.com/p/mediacomp-jes
0 stars 0 forks source link

Strangeness in parameters for sampling rates #22

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The code is designed to behave this way, but we may want to review it as it
is inconsistent.  As it stands now, getsamplingrate() returns a double but
then make empty sound takes an int sampling rate.  This requires users to
cast values to when say creating an empty sound with the same sampling rate
as an existing sound.  It could be cleaner, though this change could
potentially break other code and/or textbook examples, so we need to look
into it to decide if a change is warranted.

Original issue reported on code.google.com by bjdorn@gmail.com on 5 Aug 2009 at 2:21

GoogleCodeExporter commented 8 years ago

Original comment by bjdorn@gmail.com on 14 Aug 2009 at 6:25