Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start and End Time #8

Closed
rakhaagung16 opened this issue Jun 20, 2016 · 1 comment
Closed

Start and End Time #8

rakhaagung16 opened this issue Jun 20, 2016 · 1 comment

Comments

@rakhaagung16
Copy link

Hi, can we set start time and end time when playback with sonic library? Thank you.

@waywardgeek
Copy link
Owner

Start and end time seem to be an application level concept, IMO. Basically, count sample periods to convert to time. To remove N seconds from the output of libsonic, throw away N*sampleRate samples. You probably also want to ramp the volume from 0 to 100% for a 10th of a second or so when starting playback so the speaker does not pop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants