ResourceImporterOggVorbis

package
v0.0.0-...-59761c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package ResourceImporterOggVorbis provides methods for working with ResourceImporterOggVorbis object instances.

Index

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 Any

type Any interface {
	gd.IsClass
	AsResourceImporterOggVorbis() Instance
}

type Instance

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 New

func New() Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) AsResourceImporter

func (self Instance) AsResourceImporter() ResourceImporter.Instance

func (Instance) AsResourceImporterOggVorbis

func (self Instance) AsResourceImporterOggVorbis() Instance

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL