Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | bambelu |
I am trying to play a .ogg music file from gdscript but nothing happens (no sound is played when I do this). If someone knows what I am doing wrong I would be very glad.
var music = AudioStreamPlayer.new()
var stream = load("res://Assets/Music/House In a Forest Loop.ogg")
music.set_stream(stream)
music.volume_db = 1
music.pitch_scale = 1
music.play()
I run this in the _ready of the scene I am viewing.
Godot version: 3.0.4
OS: x86_64 Linux 4.9.86-1-MANJARO