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

Ogg support #1

Open
yobson1 opened this issue Dec 19, 2020 · 1 comment
Open

Ogg support #1

yobson1 opened this issue Dec 19, 2020 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@yobson1
Copy link
Owner

yobson1 commented Dec 19, 2020

I tried adding Ogg support but it looks like it requires 64 bit integers to be read. There is no native method for this in the file object so I tried using left bit shift and bitwise or to just read 1 byte at a time but the bit library only supports up to 32 bits as well. If there is no way to overcome this I don't think Ogg support is possible.

@yobson1 yobson1 added enhancement New feature or request help wanted Extra attention is needed labels Dec 19, 2020
@chev2
Copy link

chev2 commented Oct 29, 2023

Hey, just a heads up, the ability to read unsigned 64-bit integers using Gmod Lua's File handler is now possible (currently only on the dev branch of the game): https://wiki.facepunch.com/gmod/File:ReadUInt64

However, it is only for unsigned ints, not signed ints, and it is read as a string rather than a number (it might possible to just use tonumber() in Lua). Assuming these restrictions still allow for the duration to be read from OGG files, then OGG support should be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants