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

Add SeekTo(...) #15

Merged
merged 8 commits into from
Mar 7, 2019
Merged

Add SeekTo(...) #15

merged 8 commits into from
Mar 7, 2019

Conversation

StefH
Copy link
Contributor

@StefH StefH commented Mar 4, 2019

For working example and how to use it, see:
https://github.com/StefH/WebDAV-AudioPlayer/tree/ogg

Concentus.Oggfile.sln Outdated Show resolved Hide resolved
throw new ArgumentOutOfRangeException(nameof(playbackTime));
}

long granulePosition = Convert.ToInt64(playbackTime.TotalSeconds * GranuleSampleRate);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why Convert.ToInt64 instead of just casting to long?

@lostromb lostromb merged commit ebaa504 into lostromb:master Mar 7, 2019
@StefH StefH deleted the seek branch March 17, 2019 14:39
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

Successfully merging this pull request may close these issues.

2 participants