8000 aufile: add methods to get size in bytes/length in ms by larsimmisch · Pull Request #913 · baresip/re · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

aufile: add methods to get size in bytes/length in ms #913

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

Merged
merged 4 commits into from
Aug 19, 2023
Merged

aufile: add methods to get size in bytes/length in ms #913

merged 4 commits into from
Aug 19, 2023

Conversation

larsimmisch
Copy link
Contributor
@larsimmisch larsimmisch commented Aug 18, 2023

Create two new functions:

  • aufile_get_size()
  • aufile_get_length()

The former returns the size in bytes, the latter the length in milliseconds.

@sreimers
Copy link
Member
sreimers commented Aug 18, 2023

Thanks for the PR, looks good, only the return err cases should be better 0.

Edit: And some linter (ccheck) warnings, need to be fixed:

./rem/aufile/aufile.c:263: line is too wide (80 - max 79)
./rem/aufile/aufile.c:265: line is too wide (84 - max 79)
./rem/aufile/aufile.c:267: line is too wide (84 - max 79)
./rem/aufile/aufile.c:270: line is too wide (84 - max 79)

Co-authored-by: Sebastian Reimers <service@it-sreimers.de>
@sreimers sreimers merged commit 64c90e3 into baresip:main Aug 19, 2023
@larsimmisch larsimmisch deleted the immisch/aufile-size branch August 19, 2023 10:14
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.

3 participants
@larsimmisch @sreimers 334B @larsimmisch-adobe
0