[Gambas-user] R: OpenAL (gb.openal) example code and problem loading .wav files

2015-08-21 Thread Ru Vuott
> 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 shoul

Re: [Gambas-user] OpenAL (gb.openal) example code and problem loading .wav files

2015-08-21 Thread Jussi Lahtinen
> ...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 ---

Re: [Gambas-user] Segfault with certain array sizes

2015-08-21 Thread Tobias Boege
On Fri, 21 Aug 2015, Beno?t Minisini wrote: > Le 21/08/2015 10:04, Tobias Boege a ?crit : > > Hi Benoit (or Adrien, as I've seen you are a good substitute :-)), > > > > while testing a project for a thread by martin p cristia yesterday, I saw > > that segfaults could occur when allocating an array

Re: [Gambas-user] OpenAL (gb.openal) example code and problem loading .wav files

2015-08-21 Thread Benoît Minisini
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 reaso

Re: [Gambas-user] Segfault with certain array sizes

2015-08-21 Thread Benoît Minisini
Le 21/08/2015 10:04, Tobias Boege a écrit : > Hi Benoit (or Adrien, as I've seen you are a good substitute :-)), > > while testing a project for a thread by martin p cristia yesterday, I saw > that segfaults could occur when allocating an array of certain size. Use the > attached project to create

Re: [Gambas-user] OpenAL (gb.openal) example code and problem loading .wav files

2015-08-21 Thread Ru Vuott
> 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.o

Re: [Gambas-user] OpenAL (gb.openal) example code and problem loading .wav files

2015-08-21 Thread Jussi Lahtinen
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 implemen

[Gambas-user] R: OpenAL (gb.openal) example code and problem loading .wav files

2015-08-21 Thread Ru Vuott
Hello Kevin, you did a good work. Well, in your code I replaced 'setting up listener' code with this: ' Set up listener. Al.Listenerfv(Al.POSITION, [0, 0, 0]) Al.Listenerfv(Al.VELOCITY, [0, 0, 0]) Al.Listenerfv(Al.ORIENTATION, [0, 0, -1]) and the wav file plays (but NOT sine wave and wav f

[Gambas-user] Segfault with certain array sizes

2015-08-21 Thread Tobias Boege
Hi Benoit (or Adrien, as I've seen you are a good substitute :-)), while testing a project for a thread by martin p cristia yesterday, I saw that segfaults could occur when allocating an array of certain size. Use the attached project to create a Float[] of different numbers of elements. Over here

Re: [Gambas-user] Issue 633 in gambas: Opening page Mouse does not work in IDE

2015-08-21 Thread gambas
Comment #3 on issue 633 by justlost...@gmail.com: Opening page Mouse does not work in IDE https://code.google.com/p/gambas/issues/detail?id=633 in svn version it is set to true, got cut off -- You received this message because this project is configured to send all issue notifications to th

Re: [Gambas-user] Multidimensional dynamic array basics

2015-08-21 Thread Gianluigi
Provided that the Sardinia sun has baked my brain (in fact, since my last post, it would seem) example (I think correctly) that I posted, there is what you need and more. Greetings Gianluigi 2015-08-21 9:19 GMT+02:00 Tobias Boege : > On Fri, 21 Aug 2015, Kevin Fishburne wrote: > > On 08/21/2015 1

Re: [Gambas-user] Issue 633 in gambas: Opening page Mouse does not work in IDE

2015-08-21 Thread gambas
Comment #2 on issue 633 by justlost...@gmail.com: Opening page Mouse does not work in IDE https://code.google.com/p/gambas/issues/detail?id=633 after testing some more fmain.dwgWelcome.Ignore set to false makes it work yes i know it means ignore for arrange, but it resoles my issue se

Re: [Gambas-user] Multidimensional dynamic array basics

2015-08-21 Thread Tobias Boege
On Fri, 21 Aug 2015, Kevin Fishburne wrote: > On 08/21/2015 12:00 AM, Kevin Fishburne wrote: > > On Wed, Aug 19, 2015 at 9:22 AM, Kevin Fishburne < > > kevinfishbu...@eightvirtues.com> wrote: > > > >> I need to know how to declare, initialize and add elements to a > >> two-dimensional dynamic array