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 OggFlac support #987

Merged
merged 2 commits into from Feb 1, 2024
Merged

add OggFlac support #987

merged 2 commits into from Feb 1, 2024

Conversation

philippe44
Copy link
Contributor

This completes OggFlac file support, including seeking. It needs LMS-Community/Audio-Scan#5. Now, I think that by just not changing types.conf, all these changes are disabled and won't matter.

@@ -265,7 +265,7 @@ sub _addInfoTags {
$tags->{SIZE} = $info->{file_size};
$tags->{SECS} = $info->{song_length_ms} / 1000;
$tags->{OFFSET} = 0; # the header is an important part of the file. don't skip it
$tags->{BITRATE} = sprintf "%d", $info->{bitrate};
$tags->{BITRATE} = sprintf "%d", ($info->{bitrate} || $info->{bitrage_ogg});
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a bit of a rage in Ogg? 😁

Don't know whether this typo is needed for compatibility with Audio::Scan?

@mherger
Copy link
Contributor

mherger commented Jan 31, 2024

Would merging this before updating Audio::Scan break anything which previously worked?

@philippe44
Copy link
Contributor Author

philippe44 commented Jan 31, 2024

I will let the rage cool down a bit 😄 and I'll run some test with 1.09. If needed, I'll change OggFlac.pm to deal with the error cases that might happen then.

@philippe44
Copy link
Contributor Author

ok - rage is gone and I've tried with current Audio::Scan and it behaves as expected: the ogf files are scanned but no relevant data is returned so they can be played but not seek through. I don't think it will create a problem, the only difference with today is that ogf are now part of the library.

@mherger mherger merged commit f547e81 into LMS-Community:public/8.4 Feb 1, 2024
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.

None yet

2 participants