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

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

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.

rem/aufile/aufile.c Outdated Show resolved Hide resolved
@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)

rem/aufile/aufile.c Outdated Show resolved Hide resolved
Co-authored-by: Sebastian Reimers <[email protected]>
@sreimers sreimers merged commit 64c90e3 into baresip:main Aug 19, 2023
29 checks passed
@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