serbod / acs

Audio Components Suite for Lazarus/Delphi
63 stars 21 forks source link

bugfix: InBitsPerSample and InSampleRate actually work now. :) #29

Closed tangentstorm closed 1 year ago

tangentstorm commented 1 year ago

If you change the InBitsPerSample or InSampleRate on a TAcsAudioIn component in lazarus, the values immediately change back to the defaults (perhaps because I had the driver and device set in the designer?).

In my case, the defaults of 8 and 8000, respectively made for some pretty crummy sound quality.

The problem is that the property definitions were set up to write to a local variable, but to read from the TAcsAudioDriver.

This patch changes the properties to call new methods SetBPS and SetSR , which in turn set the InBitsPerSample and InSampleRate properties on the TcsAudioInDriver.

... And now the sound quality is amazing, and I can get back to using these awesome components! Thanks for making this!

serbod commented 1 year ago

Thank you for you support! 👍