🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #380

Re: zero value with samples

#380
From: Fraser Ross
Date: Sat, 09 Oct 2004 13:11
13 lines
1260 bytes
"Mark Jacobs"
> This is what I use for 8-bit samples :-
>
> int lv=(int)((unsigned char)wvhdr->lpData[0])-128;
> -- 

That isn't an answer to my question.  BTW I don't think the cast to int is
necessary.

My former suggestion of 128 positive values and 128 negative values and
using 0 as if it is the midpoint seems to be the norm.

Fraser.
Technical Details
Message-ID: <4167e397@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4166532e@newsgroups.borland.com> <4167c2a9@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: "Fraser Ross" <fraserATmembers.v21.co.unitedkingdom>
Newsgroups: borland.public.cppbuilder.multimedia
References: <4166532e@newsgroups.borland.com> <4167c2a9@newsgroups.borland.com>
Subject: Re: zero value with samples
Date: Sat, 9 Oct 2004 14:11:36 +0100
Lines: 15
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.7.62.55
Message-ID: <4167e397@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1097327511 81.7.62.55 (9 Oct 2004 06:11:51 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail