Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
ResourceImporterOggVorbis
Eredita: ResourceImporter < RefCounted < Object
Importa un file audio Ogg Vorbis per la riproduzione.
Descrizione
Ogg Vorbis è un formato audio lossy (con perdita), con una migliore qualità audio rispetto a ResourceImporterMP3 a un determinato bitrate.
Nella maggior parte dei casi, si consiglia di utilizzare Ogg Vorbis al posto di MP3. Tuttavia, se si utilizza una sorgente audio MP3 senza una sorgente di qualità superiore disponibile, si consiglia di utilizzare direttamente il file MP3 per evitare una doppia compressione lossy.
Ogg Vorbis richiede più CPU per la decodifica rispetto a ResourceImporterWAV. Se è necessario riprodurre molti suoni allo stesso tempo, si consiglia di utilizzare WAV per quei suoni, soprattutto se destinati a dispositivi di fascia bassa.
Tutorial
Proprietà
|
||
|
||
|
||
|
||
|
Metodi
load_from_buffer(stream_data: PackedByteArray) static |
|
load_from_file(path: String) static |
Descrizioni delle proprietà
The number of beats within a single bar in the audio track. This is only relevant for music that wishes to make use of interactive music functionality, not sound effects.
A more convenient editor for bar_beats is provided in the Advanced Import Settings dialog, as it lets you preview your changes without having to reimport the audio.
The length of the audio track, in beats. The actual duration of the audio file might be longer than what is indicated by this property. This is only relevant for music that wishes to make use of interactive music functionality, not sound effects.
A more convenient editor for beat_count is provided in the Advanced Import Settings dialog, as it lets you preview your changes without having to reimport the audio.
The tempo of the audio track, measured in beats per minute. This should match the BPM measure that was used to compose the track. This is only relevant for music that wishes to make use of interactive music functionality, not sound effects.
A more convenient editor for bpm is provided in the Advanced Import Settings dialog, as it lets you preview your changes without having to reimport the audio.
If enabled, the audio will begin playing either from the beginning or from loop_offset, after playback ends by either reaching the end of the audio or reaching the end of the last beat according to the amount specified in beat_count.
Note: In AudioStreamPlayer, the AudioStreamPlayer.finished signal won't be emitted for looping audio when it reaches the end of the audio file, as the audio will keep playing indefinitely.
Determina dove l'audio inizierà a ripetersi dopo che la riproduzione ha raggiunto la fine dell'audio. Può essere utilizzato per ripetere solo una parte del file audio, il che è utile per alcuni suoni ambientali o musica. Il valore è determinato in secondi dall'inizio dell'audio. Un valore di 0.0 ripeterà l'intero file audio.
Ha effetto solo se loop è true.
Nella finestra di dialogo Impostazioni d'importazione avanzate è fornito un editor più comodo per loop_offset, in quanto consente di visualizzare le modifiche in anteprima senza dover reimportare l'audio.
Descrizioni dei metodi
AudioStreamOggVorbis load_from_buffer(stream_data: PackedByteArray) static 🔗
Deprecato: Use AudioStreamOggVorbis.load_from_buffer() instead.
Crea una nuova istanza AudioStreamOggVorbis dal buffer fornito. Il buffer deve contenere i dati in Ogg Vorbis.
AudioStreamOggVorbis load_from_file(path: String) static 🔗
Deprecato: Use AudioStreamOggVorbis.load_from_file() instead.
Crea una nuova istanza AudioStreamOggVorbis dal percorso di file fornito. Il file deve essere in formato Ogg Vorbis.