TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: MICAEL BAERENS
from: DIMITRI SMITS
date: 1997-08-16 21:22:00
subject: converting sound data

 >  DK> Ok, peoples!  I thought I knew how to do this but when I tried it
 >  DK> it didn't work.  No code is needed, I just need to know how to
 >  DK> convert a 16-bit sample to an 8-bit sample...  That's it.
 > unsigned short       _16_bit_sample;
that seems not really to be true. A 16-bit sample is almost
ALWAYS signed!
 > unsigned char        _8_bit_sample;
8bit samples can both be signed or unsigned!
other than that your message was correct ...
Greetz,
Da Gongo
--- FMail/386 1.02
---------------
* Origin: Hiroshima '45, Tsjernobil '86, Windows '95 (2:292/8013.12)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.