12
Shouts

Alvas.Net Blog: Communicate with aliens on F# (continued)

published 859 days, 16 hours, 17 minutes ago posted by alvasalvas 862 days, 16 hours, 55 minutes ago
Friday, January 08, 2010 10:27:16 AM GMT Tuesday, January 05, 2010 9:48:57 AM GMT

Previously, we are talking with aliens in C#, Nemerle and Boo. Now let's try to do the same on F#. See code below.

  open System open Alvas.Audio     let rex = new RecorderEx(true); let play = new PlayerEx(true); let pcmFormat = AudioCompressionManager.GetPcmFormat(int16 1, int16 16, 44100);   let rexData () (e : DataEventArgs) : unit =     let data = AudioCompressionManager.Reverse(pcmFormat, e.Data);     ignore(play.AddData(data)); let rex_DataHandler = new RecorderEx.DataE...

category: Foundation | clicked: 0 | | source: alvasnet.blogspot.com | show counter code
tags: Audio&Multimedia