Fix incorrect setup for OGG loading
This commit is contained in:
parent
a70b7bf633
commit
02f5c8fa55
@ -30,7 +30,7 @@ static func load_mp3(buffer:PackedByteArray)->AudioStreamMP3:
|
|||||||
|
|
||||||
static func load_ogg(buffer:PackedByteArray)->AudioStreamOggVorbis:
|
static func load_ogg(buffer:PackedByteArray)->AudioStreamOggVorbis:
|
||||||
var sfx := AudioStreamOggVorbis.new()
|
var sfx := AudioStreamOggVorbis.new()
|
||||||
sfx.data = buffer
|
sfx.load_from_buffer(buffer)
|
||||||
return sfx
|
return sfx
|
||||||
|
|
||||||
static func load_txt(buffer:PackedByteArray)->String:
|
static func load_txt(buffer:PackedByteArray)->String:
|
||||||
|
Loading…
Reference in New Issue
Block a user