Autore Topic: Nuovo componente gb.openal con rev. 5753  (Letto 810 volte)

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.269
  • Ne mors quidem nos iunget
    • Mostra profilo
Nuovo componente gb.openal con rev. 5753
« il: 21 Luglio 2013, 23:13:33 »
Con la revisione 5753 è stato aggiunto il nuovo componente gb.openal.

E' necessario installare OpenAL, altrimenti nella configurazione si avrà il seguente avviso:
||
|| THESE COMPONENTS ARE DISABLED:
|| - gb.openal
||



Infatti:


« You have to install OpenAL.

--
Benoît Minisini
»


« [GB.OPENAL]
"New component for the OpenAL 3D audio library. Work in
progress..."

I can only guess, but not the libopenal-dev package is missing? Might
help the full build log...

Kende Krisztián
»


« If you don't need openal component, then I would guess you don't need to do anything.

Jussi
»



Il nuovo componente si basa sulle risorse di "Open Audio Library"; un'interfaccia che consente al programmatore di specificare oggetti ed operazioni nella produzione audio di alta qualità, in particolar modo uscita multicanale di arrangiamenti in 3D di sorgenti sonore poste intorno ad un ascoltatore.

Per informazioni ed esempi:
http://connect.creativelabs.com/openal/default.aspx
http://connect.creativelabs.com/openal/Documentation/OpenAL_Programmers_Guide.pdf
http://profs.sci.univr.it/~rocchess/htmls/corsi/SoundProcessing/openAL.ps.gz
http://kcat.strangesoft.net/openal.html
http://kcat.strangesoft.net/openal-tutorial.html
http://ffainelli.github.io/openal-example/
http://repo.or.cz/w/openal-soft.git/tree/HEAD:/examples
http://www.edenwaith.com/products/pige/tutorials/openal.php
http://enigma-dev.org/forums/index.php?topic=730.0;wap2

Dalla nostra WIKI:
http://www.gambas-it.org/wiki/index.php?title=La_gestione_mediante_le_funzioni_esterne_dell%27API_di_OpenAL
« Ultima modifica: 30 Luglio 2013, 16:28:29 da vuott »
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.269
  • Ne mors quidem nos iunget
    • Mostra profilo
Re: Nuovo componente gb.openal con rev. 5753
« Risposta #1 il: 23 Luglio 2013, 00:09:14 »
...continua...


" For information, I'm currently adding support for the alure utility
library, so you will need the libalure-dev package soon...

--
Benoît Minisini
"


" This example is directly ported from the "alureplay" C source code.   (vedi allegato in basso)
Use it with revision #5759.

Don't pay attention to the inner music.

And as I am the boss, I allow my highness to post messages bigger than 512 Ko on the mailing-list. :-)

-- Benoît Minisini
"


" Here is the documentation of the alure library:

http://kcat.strangesoft.net/alure-docs/files/alure-cpp.html

The Gambas interface is as most as possible the same as the library. The
differences are:

- Alure.GetVersion() returns a string, not two integer numbers.

- No output arguments into pointer. So, to get the buffers automatically
associated with a new stream, I added a new function
Alure.GetStreamBuffers().

- No callbacks. Instead, the Alure.Update() function returns an array of
the sources started with Alure.PlaySource() or Alure.PlaySourceStream()
that have just stopped playing, or NULL.

--
Benoît Minisini
"
« Ultima modifica: 23 Luglio 2013, 01:40:18 da vuott »
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.269
  • Ne mors quidem nos iunget
    • Mostra profilo
Re: Nuovo componente gb.openal con rev. 5753
« Risposta #2 il: 23 Luglio 2013, 01:42:22 »
...continua...


" This is the same example,   (vedi allegato in basso)
but now it uses Alure streams. I.e, instead of loading the entire sound in memory and then playing it, it just loads a few chunks and feed the source as needed.
This is what must be done if you want to play a background music, and not a little sound.

Use it with revision #5760.

-- Benoît Minisini
"
« Ultima modifica: 23 Luglio 2013, 01:44:29 da vuott »
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »