Documentation
¶
Overview ¶
Package ResourceImporterOggVorbis provides methods for working with ResourceImporterOggVorbis object instances.
Index ¶
- func LoadFromBuffer(stream_data []byte) [1]gdclass.AudioStreamOggVorbis
- func LoadFromFile(path string) [1]gdclass.AudioStreamOggVorbis
- type Advanced
- type Any
- type Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResourceImporter() ResourceImporter.Instance
- func (self Instance) AsResourceImporterOggVorbis() Instance
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromBuffer ¶
func LoadFromBuffer(stream_data []byte) [1]gdclass.AudioStreamOggVorbis
Creates a new [AudioStreamOggVorbis] instance from the given buffer. The buffer must contain Ogg Vorbis data.
func LoadFromFile ¶
func LoadFromFile(path string) [1]gdclass.AudioStreamOggVorbis
Creates a new [AudioStreamOggVorbis] instance from the given file path. The file must be in Ogg Vorbis format.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Instance ¶
type Instance [1]gdclass.ResourceImporterOggVorbis
Ogg Vorbis is a lossy audio format, with better audio quality compared to [ResourceImporterMP3] at a given bitrate. In most cases, it's recommended to use Ogg Vorbis over MP3. However, if you're using an MP3 sound source with no higher quality source available, then it's recommended to use the MP3 file directly to avoid double lossy compression. Ogg Vorbis requires more CPU to decode than [ResourceImporterWAV]. If you need to play a lot of simultaneous sounds, it's recommended to use WAV for those sounds instead, especially if targeting low-end devices.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResourceImporter ¶
func (self Instance) AsResourceImporter() ResourceImporter.Instance