Article View: borland.public.cppbuilder.multimedia
Article #379Re: zero value with samples
From: Mark Jacobs
Date: Sat, 09 Oct 2004 10:50
Date: Sat, 09 Oct 2004 10:50
13 lines
1556 bytes
1556 bytes
This is what I use for 8-bit samples :- int lv=(int)((unsigned char)wvhdr->lpData[0])-128; -- Mark Jacobs "Fraser Ross" <fraserATmembers.v21.co.unitedkingdom> wrote in message news:4166532e@newsgroups.borland.com... | When using sound samples that are signed 8 bit is there a midpoint value? | Since there is an even number of possible values there is not a logical | midpoint. Should I view 0 as a positive value so that there are 128 | positive values and 128 negative values or call it the midpoint and not use | the value -128?
Technical Details
Message-ID:
<4167c2a9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4166532e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,c5ac5258fa1a1e59 X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mark Jacobs" <http://www.jacobsm.com/mjmsg.htm?Borland%20Newsgroup> Newsgroups: borland.public.cppbuilder.multimedia References: <4166532e@newsgroups.borland.com> Subject: Re: zero value with samples Date: Sat, 9 Oct 2004 11:50:53 +0100 Lines: 14 Organization: DK Computing MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 81.86.186.94 Message-ID: <4167c2a9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1097319081 81.86.186.94 (9 Oct 2004 03:51:21 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail