View Issue Details

IDProjectCategoryView StatusLast Update
0003159FSSCPsoundpublic2020-04-13 03:32
ReporterAxem Assigned Tom_m  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.7.3 
Fixed in Version19.0.0 
Summary0003159: looping with play-sound-from-file isn't seamless
DescriptionIt's near impossible to have a seamless looping music track in missions because there is a very small break in the audio when the game has to loop back to the start.

See attached "music" (its just a tone) and mission for an example. The tone should be constant, but its not!
TagsNo tags attached.

Activities

Axem

2015-05-17 13:58

reporter  

psff_bug.rar (7,448 bytes)

m_m

2015-05-17 21:45

developer   ~0016708

The timer interval used for looping sounds is way to high. Currently the timer fires every 250 ms which causes the audible gap in the sound. Even lowering it to 20 doesn't solve that.
The audiostream code is pretty ugly and does a lot of things for no good reason (why use a timer instead of running things on the main thread? Why not just continue writing data into the buffer when we want the sound to loop?).

Goober5000

2020-04-13 03:21

administrator   ~0016965

This was fixed in Github:
https://github.com/scp-fs2open/fs2open.github.com/pull/2148

Issue History

Date Modified Username Field Change
2015-05-17 13:58 Axem New Issue
2015-05-17 13:58 Axem File Added: psff_bug.rar
2015-05-17 21:45 m_m Note Added: 0016708
2015-05-17 21:45 m_m Assigned To => m_m
2015-05-17 21:45 m_m Status new => assigned
2020-04-13 03:21 Goober5000 Status assigned => resolved
2020-04-13 03:21 Goober5000 Resolution open => fixed
2020-04-13 03:21 Goober5000 Note Added: 0016965
2020-04-13 03:32 Goober5000 Fixed in Version => 19.0.0