Open hankeyyh opened 4 months ago
This project is maintained at https://github.com/gopxl/beep, please direct all future inquiries there.
If you're asking about changing the speaker sample rate after it's been started; no.
For other streamers (decoded from a file or others) it doesn't really make sense to change the sample rate mid stream as they're encoded with a specific sample rate.
If you need to play a piece of audio at a certain different sample rate, then you'll need to resample the audio while playing (or offline for better performance). Beep provides a resampler
This project is maintained at https://github.com/gopxl/beep, please direct all future inquiries there.
If you're asking about changing the speaker sample rate after it's been started; no.
For other streamers (decoded from a file or others) it doesn't really make sense to change the sample rate mid stream as they're encoded with a specific sample rate.
If you need to play a piece of audio at a certain different sample rate, then you'll need to resample the audio while playing (or offline for better performance). Beep provides a resampler