StrataSource / Engine

Issue tracker for Strata Source
46 stars 2 forks source link

Feature: Looping for Ogg and FLAC audio files #1013

Open JJL772 opened 8 months ago

JJL772 commented 8 months ago

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

craftablescience commented 8 months ago

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

JJL772 commented 8 months ago

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

JJL772 commented 8 months ago

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

Maxkatsur commented 1 month ago

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.

craftablescience commented 1 month ago

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?

Maxkatsur commented 1 month ago

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!

craftablescience commented 1 month ago

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

tsa96 commented 6 days ago

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