reckfellENGINE

ResourceImporterOggVorbis

Imports an Ogg Vorbis audio file for playback.

On this page
class ResourceImporterOggVorbisReckfellSharpEditorInherits ResourceImporter

Imports an Ogg Vorbis audio file for playback.

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.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

ResourceImporterOggVorbisConstructor
# ResourceImporterOggVorbis
C#
public ResourceImporterOggVorbis();

Methods3

LoadFromBuffer2 overloads · Includes deprecated
# LoadFromBuffer · 1/2
C#
public static AudioStreamOggVorbis LoadFromBuffer(byte[] streamData);

Creates a new AudioStreamOggVorbis instance from the given buffer. The buffer must contain Ogg Vorbis data.

Parameters
NameTypeDefault
streamDatabyte[]—
Returns AudioStreamOggVorbis
# LoadFromBuffer · 2/2
C#
public static AudioStreamOggVorbis LoadFromBuffer(ReadOnlySpan<byte> streamData);

Creates a new AudioStreamOggVorbis instance from the given buffer. The buffer must contain Ogg Vorbis data.

Parameters
NameTypeDefault
streamDataReadOnlySpan<byte>—
Returns AudioStreamOggVorbis
LoadFromFileAudioStreamOggVorbis · Deprecated
# LoadFromFile
C#
public static AudioStreamOggVorbis LoadFromFile(string path);

Creates a new AudioStreamOggVorbis instance from the given file path. The file must be in Ogg Vorbis format.

Parameters
NameTypeDefault
pathstring—
Returns AudioStreamOggVorbis
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.