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 support for loop points to sounds #402

Open
qcapen opened this issue Jun 5, 2020 · 1 comment
Open

Add support for loop points to sounds #402

qcapen opened this issue Jun 5, 2020 · 1 comment

Comments

@qcapen
Copy link
Collaborator

qcapen commented Jun 5, 2020

Both .ogg and .wav files support tags that define looping points within audio files (ex: LOOPSTART and LOOPLENGTH). These particular points in the sample are used when the file played back and is looping (rather than the beginning and end points of the sample). The sdl_mixer library is used in the MC for sound loading to memory and final mix output to hardware. The sdl_mixer loading code does support some loop tags, however this data is internal to sdl_mixer and is not exposed via the api. This makes it extremely unlikely we can automatically support the loading of these tags. However, loop points could be added to the sound config manually and used to control the looping of in memory sounds so the functionality of the loop points would be supported in the MC (just not the automatic loading from the files themselves).

@qcapen
Copy link
Collaborator Author

qcapen commented Jun 5, 2020

It is possible a utility could be created using gstreamer to extract the loop points from the files and create a config snippet for the sound containing the loop points since gstreamer does have the ability to extract tag metadata from most audio file formats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant