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

A managed event doesn't have an EventInfoStructure #70

Open
JezSonic opened this issue Feb 2, 2021 · 8 comments
Open

A managed event doesn't have an EventInfoStructure #70

JezSonic opened this issue Feb 2, 2021 · 8 comments

Comments

@JezSonic
Copy link

JezSonic commented Feb 2, 2021

While playing event, nothing plays and this happens https://i.imgur.com/bYhllGA.png

@CedNaru
Copy link
Member

CedNaru commented Feb 2, 2021

Hello,

Can you provide an example of the script you used to get this error?

@JezSonic
Copy link
Author

JezSonic commented Feb 2, 2021

extends Node2D


# Declare member variables here. Examples:
# var a = 2
# var b = "text"


# Called when the node enters the scene tree for the first time.
func _ready():
	Fmod.set_software_format(0, Fmod.FMOD_SPEAKERMODE_STEREO, 0)
	Fmod.init(1024, Fmod.FMOD_STUDIO_INIT_LIVEUPDATE, Fmod.FMOD_INIT_NORMAL)
	Fmod.load_bank("res://Master.bank", Fmod.FMOD_STUDIO_LOAD_BANK_NORMAL)
	Fmod.load_bank("res://Master.strings.bank", Fmod.FMOD_STUDIO_LOAD_BANK_NORMAL)
	Fmod.load_bank("res://Music.bank", Fmod.FMOD_STUDIO_LOAD_BANK_NORMAL)
	var event = Fmod.create_event_instance("event:/1stage")
	Fmod.add_listener(0, self)
	Fmod.start_event(event)
	

@JezSonic
Copy link
Author

JezSonic commented Feb 2, 2021

sure, it's in previous comment

@CedNaru
Copy link
Member

CedNaru commented Feb 2, 2021

Does the error start immediately when you play the event or when it is supposed to end?

@JezSonic
Copy link
Author

JezSonic commented Feb 3, 2021

It starts while calling Fmod.start_event(event)

@mario-holubar
Copy link

mario-holubar commented Feb 14, 2021

Having the same problem, on create_event_instance() even without start_event(). play_one_shot() doesn't throw errors but also doesn't play the sound.

EDIT: I did not realize master.strings.bank had to be loaded before everything else. Doing this fixed the issue for me.

@CedNaru
Copy link
Member

CedNaru commented Feb 15, 2021

Yeah, loading this bank first is a necessity of FMOD. There is nothing we can do about this one but I guess we should made clearer in the doc.
Concerning the original issue, this seems to be also the case. I should try to find a way to warn users that particular case.

@piiertho
Copy link
Member

piiertho commented Nov 8, 2023

As we reworked the plugin with gdextension, I think we can close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants