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

[PATCH] Flac and ogg - Support User Play Count Selection When Looping #272

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Closed

Comments

@SDLBugzilla
Copy link
Collaborator

SDLBugzilla commented Feb 11, 2021

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: 2.0.4
Reported for operating system, platform: Linux, x86_64

Comments on the original bug report:

On 2019-11-24 03:09:04 +0000, Michael Day wrote:

Created attachment 4068
Patch - music_flac.c and music.ogg.c - add support for play count when looping

When looping using loop points specified by LOOP* metadata tags, the looping logic should be affected by the user-specified play count value. The patch here applies uniform looping logic to both music_ogg.c and music_flac.c. Also, when the play count is 1, we want to play the audio file straight through without any looping. (This is not currently how the looping logic behaves.)

On 2019-11-24 11:36:33 +0000, Ozkan Sezer wrote:

Vitaly: This touches your patched code too, I think. So review/test.

On 2019-11-26 10:25:28 +0000, Vitaly Novichkov wrote:

Gonna to check out the thing...

On 2019-11-26 10:42:23 +0000, Vitaly Novichkov wrote:

I have tested this patch, and it fixes the bug! When the file is looping, and when is limited loops count set, the tail should be played after all loops were passed to finalize the song. So, now there are playing fine!

On 2019-11-26 10:42:52 +0000, Vitaly Novichkov wrote:

Created attachment 4069
Sample looping file

A short sample file to verify the looping

On 2019-11-26 10:44:04 +0000, Vitaly Novichkov wrote:

Created attachment 4070
A short demo of patched result, recorded on the video

Here you'll see the seek bar. The blue area is the loop range.
I did next tests:

  • forever looping
  • play single time
  • loop twice
  • loop trice

On 2019-11-26 11:38:33 +0000, Ozkan Sezer wrote:

Patch applied: http://hg.libsdl.org/SDL_mixer/rev/4f9f5e59419a
Thanks.

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

No branches or pull requests

1 participant