Coder Social home page Coder Social logo

Comments (8)

piiertho avatar piiertho commented on August 25, 2024 1

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

from fmod-gdextension.

CedNaru avatar CedNaru commented on August 25, 2024

Hello,

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

from fmod-gdextension.

JezSonic avatar JezSonic commented on August 25, 2024
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)
	

from fmod-gdextension.

JezSonic avatar JezSonic commented on August 25, 2024

sure, it's in previous comment

from fmod-gdextension.

CedNaru avatar CedNaru commented on August 25, 2024

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

from fmod-gdextension.

JezSonic avatar JezSonic commented on August 25, 2024

It starts while calling Fmod.start_event(event)

from fmod-gdextension.

mario-holubar avatar mario-holubar commented on August 25, 2024

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.

from fmod-gdextension.

CedNaru avatar CedNaru commented on August 25, 2024

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.

from fmod-gdextension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.