Page MenuHomeFeedback Tracker

playMusic & offset
New, NormalPublic

Description

Using playMusic to play music from addon at big offset can cause nothing.

Details

Severity
Minor
Resolution
Open
Reproducibility
Random
Operating System
Windows 7
Operating System Version
7601
Category
Engine
Steps To Reproduce
  1. Download this CBA A3 and mod:

https://github.com/SomeOneUnknown/A3FM/releases/tag/R4

  1. Wait for 30 sec after game loaded.
  2. Press R.
  3. Press next station button.
  4. Some probably that music will not play for first time.

If music starts - restart game and try again.

This module starts music:
https://github.com/SomeOneUnknown/A3FM/blob/master/Addons/Core/functions/fn_inVehicle.sqf

Additional Information

I tried to set:
playMusic ["radio200", 0];
It was always okay.

Then I tried to set:
playMusic ["radio200", 30];
And this happens again.

I think it's some kind of bug for loading addons music from big offset.

So I tried to set addMusicEventHandlers for start and end of music. At this bug only musicEnd event pushed.

Event Timeline

I tried add this:
playMusic ["radio200", 15];
playMusic ["radio200", 45];
playMusic ["radio200", 30];

For some kind of "preloading".
And it works almost always.