From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA04002; Tue, 3 Jul 2001 20:45:48 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA04004 for ; Tue, 3 Jul 2001 20:45:47 +0200 (MET DST) Received: from smtp6.mindspring.com (smtp6.mindspring.com [207.69.200.110]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f63Ijkj02319 for ; Tue, 3 Jul 2001 20:45:46 +0200 (MET DST) Received: from dylan (1Cust104.tnt4.tucson.az.da.uu.net [63.11.145.104]) by smtp6.mindspring.com (8.9.3/8.8.5) with SMTP id OAA26434; Tue, 3 Jul 2001 14:45:41 -0400 (EDT) Message-ID: <002401c103f0$7083e150$210148bf@dylan> From: "David McClain" To: , References: <23ae62237bc3.237bc323ae62@airtel.net> Subject: Re: [Caml-list] Using 16 bits integers Date: Tue, 3 Jul 2001 11:34:44 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk You can consider adding a very small amount of C code to your OCaml project. Why throw out the baby with the bath water? I do this sort of thing for sound synthesis all the time with OCaml. It is a terrific platform for this kind of work! - DM ----- Original Message ----- From: To: Sent: Tuesday, July 03, 2001 11:05 AM Subject: [Caml-list] Using 16 bits integers > Hello, I'm just new to OCaml. I'm writing a program wich uses a lot of > 16 bits operations, and writes them to a buffer. For writing into the > buffer, it is needed for the data to be in 16 bits, not in 32 bits. > Exactly, the program is like a sound synthesizer, so data cannot be send > to sound card in 32 bits. > My problem with OCaml is: how can I manage 16 bits data, and make > operations with it? I had not seen any type in Ocaml with 16bits lenght > (int is 32 bits in my machine). This will frustate my project if I do > not find a solution, so I will use C if there is no other solution... > but I would not like to do if I can avoid it, because I like very much > Ocaml. > > I'm hopping your answers. Thanks. > > ------------------- > Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ > To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr