2019-10-14 12:51 EDT


View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003159FSSCPsoundpublic2015-05-17 17:45
ReporterAxem 
Assigned Tom_m 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
Product Version3.7.3 
Target VersionFixed in Version 
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.
Attached Files

-Relationships
+Relationships

-Notes

~0016708

m_m (developer)

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?).
+Notes

-Issue History
Date Modified Username Field Change
2015-05-17 09:58 Axem New Issue
2015-05-17 09:58 Axem File Added: psff_bug.rar
2015-05-17 17:45 m_m Note Added: 0016708
2015-05-17 17:45 m_m Assigned To => m_m
2015-05-17 17:45 m_m Status new => assigned
+Issue History