Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CBA_fnc_isMusicPlaying Incorrect Returns #1241

Open
Ansible2 opened this issue Oct 13, 2019 · 0 comments
Open

CBA_fnc_isMusicPlaying Incorrect Returns #1241

Ansible2 opened this issue Oct 13, 2019 · 0 comments
Labels

Comments

@Ansible2
Copy link

Mods:

  • Arma 3: 1.94 Stable
  • CBA: 3.12.2 Stable

Description:
CBA_fnc_isMusicPlaying returns true perpetually (after music has ended) when the music was played with CBA_fnc_playMusic and will not return true when used with the command playMusic.

NOTE: This also affects CBA_fnc_playMusic's interrupt playing music capability.

Steps to reproduce:

  • Open editor in VR, place single player object, preview scenario in Singleplayer
  • Open menu, paste the following lines into the debug console and click LOCAL EXEC button
playmusic "eventTrack01_f_curator";

systemChat str (call cba_fnc_isMusicPlaying);

[
	{systemChat str (call cba_fnc_isMusicPlaying);},
	[],
	16
] call CBA_fnc_waitAndExecute;


[
	{

		["eventTrack01_f_curator",0,true] call CBA_fnc_playMusic;
		systemChat str (call cba_fnc_isMusicPlaying);
		[
			{systemChat str (call cba_fnc_isMusicPlaying);},
			[],
			16
		] call CBA_fnc_waitAndExecute;
	},
	[],
	18
] call CBA_fnc_waitAndExecute;
  • Click CONTINUE button, listen for music and observe initial systemChat
  • Wait 16 seconds, observe second systemChat
  • Wait 2 seconds, listen for music and observe systemChat
  • Wait 16 seconds for final systemChat

Expected behavior:

  • Music plays & first message displays true
  • Second message displays false
  • Music plays & third message displays true
  • Fourth message displays false

Where did the issue occur?

  • Dedicated / Singleplayer / Editor (Singleplayer)

Log Files:
https://gist.github.com/Ansible2/ee0c44af9288745471f9fa058a7e99ff

Additional context:

  • Used track length is approximately 14 seconds
  • CBA_fnc_stopMusic will reset CBA_fnc_isMusicPlaying's state back to false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant