Engine icon indicating copy to clipboard operation
Engine copied to clipboard

Feature: Looping for Ogg and FLAC audio files

Open JJL772 opened this issue 2 years ago • 8 comments

Which component should be improved?

Audio

Describe your feature suggestion in more detail

Currently only WAV sounds can be looped, and this is done using special metadata that can be embedded in RIFF files (I don't know the specifics!).

According to a comment left in #24, GZDoom and RPGMaker use Ogg and FLAC comments to denote loop points. We should implement this in the same way.

See: https://zdoom.org/wiki/Audio_loop

JJL772 avatar Nov 23 '23 00:11 JJL772

This would also be nice to implement because loop points are a nonstandard addition to the wav spec and standard programs like Audacity don't support them

craftablescience avatar Nov 23 '23 00:11 craftablescience

I'm not sure if wav has any comment capabilities like Ogg/FLAC. We can figure something out though.

JJL772 avatar Nov 23 '23 01:11 JJL772

MP3 apparently doesn't either, so loops will still be impossible with it :pensive:

JJL772 avatar Nov 23 '23 01:11 JJL772

The March 11 2024 update for P2:CE indicates that Ogg Vorbis and FLAC support has been added. https://store.steampowered.com/news/app/440000/view/4139442565108876292?l=english

However, this post is about looping OGG and FLAC audio files, similar to what FMOD and Wwise's custom interpretations of Vorbis do. Opus implementation by Strata Source is also worth it as well, but its CPU usage is huge, so be careful with this hi-tech lossy audio compression format.

Maxkatsur avatar Jun 12 '24 05:06 Maxkatsur

The March 11 2024 update for P2:CE indicates that Ogg Vorbis and FLAC support has been added. https://store.steampowered.com/news/app/440000/view/4139442565108876292?l=english

However, this post is about looping OGG and FLAC audio files, similar to what FMOD and Wwise's custom interpretations of Vorbis do. Opus implementation by Strata Source is also worth it as well, but its CPU usage is huge, so be careful with this hi-tech lossy audio compression format.

Was this written by AI?

craftablescience avatar Jun 12 '24 20:06 craftablescience

The March 11 2024 update for P2:CE indicates that Ogg Vorbis and FLAC support has been added. https://store.steampowered.com/news/app/440000/view/4139442565108876292?l=english However, this post is about looping OGG and FLAC audio files, similar to what FMOD and Wwise's custom interpretations of Vorbis do. Opus implementation by Strata Source is also worth it as well, but its CPU usage is huge, so be careful with this hi-tech lossy audio compression format.

Was this written by AI?

No, I wrote it by myself. This is my style, man! I was trying to be formal. I'm a human!

Maxkatsur avatar Jun 14 '24 14:06 Maxkatsur

lol sorry I thought it was AI because it didn't seem to add much to the conversation and the last sentence sounded very much like GPT

i get the point of what you're trying to say now

craftablescience avatar Jun 14 '24 15:06 craftablescience

What would be amazing for Momentum would be if we could add an extra property to ambient_generic to signify the audio should loop,

tsa96 avatar Jul 20 '24 17:07 tsa96