Re: [Gambas-user] OpenAL (gb.openal) example code and problem loading .wav files
I wrote this page: http://www.gambas-it.org/wiki/index.php?title=La_gestione_mediante_il_componente_gb.openal Ven 21/8/15, Benoît Minisini ha scritto: Oggetto: Re: [Gambas-user] OpenAL (gb.openal) example code and problem loading .wav files A: "mailing list for gambas users" Data: Venerdì 21 agosto 2015, 20:51 Le 21/08/2015 06:39, Kevin Fishburne a écrit : > Okay Benoît, you can take me off your list of people to kill now that > I've finally gotten around to implementing OpenAL. :) > > The documentation online is pretty spartan, with much of it being > outdated, but I still managed to set things up reasonably well to play a > sine wave at a specified frequency and I think I've found the function > to load a .wav file into an audio buffer in order to play it. The latter > doesn't work, however. The "alure" class seems to be similar to "glu" in > that it's a high-level "helper" class to make common functions easy, > such as loading sound files directly. > > This line should load the .wav file into the buffer and allow me to play > it, but it returns False: > > Print Alure.BufferDataFromFile("./test.wav", AudioBuffer[0]) > > Here's the example project if anyone wants to play with it: > > http://eightvirtues.com/misc/OpenAL_Example.tar.gz > > This issue is probably unrelated, but on running the program this > message displays in the debug window: > > "Error loading libdumb.so.1: libdumb.so.1: cannot open shared object > file: No such file or directory" > > libdumb is described as "DUMB is a tracker library with support for IT, > XM, S3M and MOD files." so I don't think that's an issue here. If OpenAL > support it however, the library might need to be added as a dependency > during compilation. > You will be the one who will test gb.openal! Don't hesitate to publich the OpenAL example to the Gambas software repository. Regards, -- Benoît Minisini -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] OpenAL (gb.openal) example code and problem loading .wav files
On 08/21/2015 02:51 PM, Benoît Minisini wrote: > Le 21/08/2015 06:39, Kevin Fishburne a écrit : >> Okay Benoît, you can take me off your list of people to kill now that >> I've finally gotten around to implementing OpenAL. :) >> > You will be the one who will test gb.openal! > > Don't hesitate to publich the OpenAL example to the Gambas software > repository. > Heh, yes I will. I test; you fix. :) Thanks everyone for the responses and fix to the code. Now that I got the very basics working (can load and play a sound) I'll start working on getting 3D positioning, doppler, etc. working and will put together a nice demo. When it's polished I'll upload it to the farm so others may benefit. Once that's done I'll begin replacing the SDL audio code in Sylph and put a video up on YouTube to show off the new audio capabilities. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] OpenAL (gb.openal) example code and problem loading .wav files
> ...because we have to destroy also the audio context: > > Alc.DestroyContext(AudioContext) > That was what I suspected, I just couldn't find the function (!?) to do it, and thus I assumed it is done along with other destroy functions. Jussi -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] OpenAL (gb.openal) example code and problem loading .wav files
Le 21/08/2015 06:39, Kevin Fishburne a écrit : > Okay Benoît, you can take me off your list of people to kill now that > I've finally gotten around to implementing OpenAL. :) > > The documentation online is pretty spartan, with much of it being > outdated, but I still managed to set things up reasonably well to play a > sine wave at a specified frequency and I think I've found the function > to load a .wav file into an audio buffer in order to play it. The latter > doesn't work, however. The "alure" class seems to be similar to "glu" in > that it's a high-level "helper" class to make common functions easy, > such as loading sound files directly. > > This line should load the .wav file into the buffer and allow me to play > it, but it returns False: > > Print Alure.BufferDataFromFile("./test.wav", AudioBuffer[0]) > > Here's the example project if anyone wants to play with it: > > http://eightvirtues.com/misc/OpenAL_Example.tar.gz > > This issue is probably unrelated, but on running the program this > message displays in the debug window: > > "Error loading libdumb.so.1: libdumb.so.1: cannot open shared object > file: No such file or directory" > > libdumb is described as "DUMB is a tracker library with support for IT, > XM, S3M and MOD files." so I don't think that's an issue here. If OpenAL > support it however, the library might need to be added as a dependency > during compilation. > You will be the one who will test gb.openal! Don't hesitate to publich the OpenAL example to the Gambas software repository. Regards, -- Benoît Minisini -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] OpenAL (gb.openal) example code and problem loading .wav files
> one allocation is not freed... I don't know what it is. ...because we have to destroy also the audio context: Alc.DestroyContext(AudioContext) Regards vuott Ven 21/8/15, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] OpenAL (gb.openal) example code and problem loading .wav files A: "mailing list for gambas users" Data: Venerdì 21 agosto 2015, 19:15 Fixed code attached. However, one allocation is not freed... I don't know what it is. Jussi On Fri, Aug 21, 2015 at 7:39 AM, Kevin Fishburne < kevinfishbu...@eightvirtues.com> wrote: > Okay Benoît, you can take me off your list of people to kill now that > I've finally gotten around to implementing OpenAL. :) > > The documentation online is pretty spartan, with much of it being > outdated, but I still managed to set things up reasonably well to play a > sine wave at a specified frequency and I think I've found the function > to load a .wav file into an audio buffer in order to play it. The latter > doesn't work, however. The "alure" class seems to be similar to "glu" in > that it's a high-level "helper" class to make common functions easy, > such as loading sound files directly. > > This line should load the .wav file into the buffer and allow me to play > it, but it returns False: > > Print Alure.BufferDataFromFile("./test.wav", AudioBuffer[0]) > > Here's the example project if anyone wants to play with it: > > http://eightvirtues.com/misc/OpenAL_Example.tar.gz > > This issue is probably unrelated, but on running the program this > message displays in the debug window: > > "Error loading libdumb.so.1: libdumb.so.1: cannot open shared object > file: No such file or directory" > > libdumb is described as "DUMB is a tracker library with support for IT, > XM, S3M and MOD files." so I don't think that's an issue here. If OpenAL > support it however, the library might need to be added as a dependency > during compilation. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sa...@eightvirtues.com > phone: (770) 853-6271 > > > > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -Segue allegato- -- -Segue allegato- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] OpenAL (gb.openal) example code and problem loading .wav files
Fixed code attached. However, one allocation is not freed... I don't know what it is. Jussi On Fri, Aug 21, 2015 at 7:39 AM, Kevin Fishburne < kevinfishbu...@eightvirtues.com> wrote: > Okay Benoît, you can take me off your list of people to kill now that > I've finally gotten around to implementing OpenAL. :) > > The documentation online is pretty spartan, with much of it being > outdated, but I still managed to set things up reasonably well to play a > sine wave at a specified frequency and I think I've found the function > to load a .wav file into an audio buffer in order to play it. The latter > doesn't work, however. The "alure" class seems to be similar to "glu" in > that it's a high-level "helper" class to make common functions easy, > such as loading sound files directly. > > This line should load the .wav file into the buffer and allow me to play > it, but it returns False: > > Print Alure.BufferDataFromFile("./test.wav", AudioBuffer[0]) > > Here's the example project if anyone wants to play with it: > > http://eightvirtues.com/misc/OpenAL_Example.tar.gz > > This issue is probably unrelated, but on running the program this > message displays in the debug window: > > "Error loading libdumb.so.1: libdumb.so.1: cannot open shared object > file: No such file or directory" > > libdumb is described as "DUMB is a tracker library with support for IT, > XM, S3M and MOD files." so I don't think that's an issue here. If OpenAL > support it however, the library might need to be added as a dependency > during compilation. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sa...@eightvirtues.com > phone: (770) 853-6271 > > > > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Source-0.0.3.tar.gz Description: GNU Zip compressed data -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user