Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Jussi Lahtinen
that ALSA >>> Constant in this page (see at Enumerations): >>> >>> http://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html >>> >>> You can see: SND_PCM_FORMAT_FLOAT = SND_PCM_FORMAT_FLOAT_LE >>> >>> >>> Thank you for

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Jussi Lahtinen
values. > > vuott > > > > > Mer 18/12/13, Jussi Lahtinen ha scritto: > > Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA > A: "mailing list for gambas users" > Data: Mercoledì 18 dicembre 2013, 0

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Jussi Lahtinen
_LE >> >> >> Thank you for your help. >> >> bye >> vuott >> >> >> >> >> Mar 17/12/13, Jussi Lahtinen ha scritto: >> >> Oggetto: Re: [Gambas-user] Generating a sine wave w

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Ru Vuott
I suppose it's a kind of signal, meaning ..you can see snd_pcm_writei() gives to ALSA handle a buffer variable full of Float values. vuott Mer 18/12/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] Generating a sine wave with

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Jussi Lahtinen
.org/alsa-doc/alsa-lib/group___p_c_m.html > > You can see: SND_PCM_FORMAT_FLOAT = SND_PCM_FORMAT_FLOAT_LE > > > Thank you for your help. > > bye > vuott > > > > ---------------- > Mar 17/12/13, Jussi Lahtinen ha scritto: >

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Ru Vuott
The C code is in Data folder of Gambas project. Anyway, I've attached it to this email. Bye vuo Mar 17/12/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA A: "mailing list for ga

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Ru Vuott
bye vuott Mar 17/12/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA A: "mailing list for gambas users" Data: Martedì 17 dicembre 2013, 22:34 At least this isn't right: Private Const SND_PCM_FORMAT_FLOAT As Integer = 14 I&#

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Jussi Lahtinen
l. > > Bye > vuo > > > > > Mar 17/12/13, Jussi Lahtinen ha scritto: > > Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA > A: "mailing list for gambas users" > Data: Martedì 17 dicembre 2013, 22:26

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Jussi Lahtinen
Oh, apparently I didn't read it through... Jussi On Tue, Dec 17, 2013 at 11:26 PM, Jussi Lahtinen wrote: > Where is the C source? Without it I can't say whether you have translated > it correctly or not. > > Jussi > > > On Tue, Dec 17, 2013 at 6:38 PM, Ru Vuott wrote: > >> Hello, >> >> in my e

Re: [Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Jussi Lahtinen
Where is the C source? Without it I can't say whether you have translated it correctly or not. Jussi On Tue, Dec 17, 2013 at 6:38 PM, Ru Vuott wrote: > Hello, > > in my eternal struggle with ALSA :-) I was trying to convert in gambas > a C code, written to generate a sine wave with ALSA fun

[Gambas-user] Generating a sine wave with ALSA

2013-12-17 Thread Ru Vuott
Hello, in my eternal struggle with ALSA :-) I was trying to convert in gambas a C code, written to generate a sine wave with ALSA functions. When I run the application, I can hear the sound of the wave, but it is mixed with a background hiss. I would like to have your opinion and check if I