[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

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 vu...@yahoo.it wrote: Hello, in my eternal struggle with ALSA :-) I was trying to convert in gambas a C code, written to generate a sine wave

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 jussi.lahti...@gmail.comwrote: 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 vu...@yahoo.it

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

2013-12-17 Thread Jussi Lahtinen
Mar 17/12/13, Jussi Lahtinen jussi.lahti...@gmail.com ha scritto: Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA A: mailing list for gambas users gambas-user@lists.sourceforge.net Data: Martedì 17 dicembre 2013, 22:26 Where

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

2013-12-17 Thread Ru Vuott
Mar 17/12/13, Jussi Lahtinen jussi.lahti...@gmail.com ha scritto: Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA A: mailing list for gambas users gambas-user@lists.sourceforge.net Data: Martedì 17 dicembre 2013, 22:34 At least this isn't right: Private Const

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 jussi.lahti...@gmail.com ha scritto: Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA A: mailing list

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

2013-12-17 Thread Jussi Lahtinen
: SND_PCM_FORMAT_FLOAT = SND_PCM_FORMAT_FLOAT_LE Thank you for your help. bye vuott Mar 17/12/13, Jussi Lahtinen jussi.lahti...@gmail.com ha scritto: Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA A: mailing list for gambas

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

2013-12-17 Thread Ru Vuott
Mar 17/12/13, Jussi Lahtinen jussi.lahti...@gmail.com ha scritto:   Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA   A: mailing list for gambas users gambas-user@lists.sourceforge.net   Data: Martedì 17 dicembre 2013, 22:34   At least this isn't right:   Private

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

2013-12-17 Thread Jussi Lahtinen
...@gmail.com ha scritto: Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA A: mailing list for gambas users gambas-user@lists.sourceforge.net Data: Martedì 17 dicembre 2013, 22:34 At least this isn't right: Private Const SND_PCM_FORMAT_FLOAT As Integer = 14 I'll look more

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

2013-12-17 Thread Jussi Lahtinen
. vuott Mer 18/12/13, Jussi Lahtinen jussi.lahti...@gmail.com ha scritto: Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA A: mailing list for gambas users gambas-user@lists.sourceforge.net Data: Mercoledì 18 dicembre 2013, 00:05

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

2013-12-17 Thread Jussi Lahtinen
Mar 17/12/13, Jussi Lahtinen jussi.lahti...@gmail.com ha scritto: Oggetto: Re: [Gambas-user] Generating a sine wave with ALSA A: mailing list for gambas users gambas-user@lists.sourceforge.net Data: Martedì 17 dicembre 2013, 22:34 At least this isn't right