1. Monkey Junk.

Can someone give me info how to correctly convert 16 bit signed numbers
to unsigned numbers and vice versa. It's real important here!!

I've almost got my music program able to use sound blaster too! Just a
bit more work and it'll work right!

Thanx,
  Mark.

new topic     » topic index » view message » categorize

2. Re: Monkey Junk.

signed_int = and_bits(unsigned_int, #7FFF) - and_bits(unsigned_int,
#8000)

--
                  _____         _____        _____
   ________      /\    \       /\    \      /\    \
  /   \    \    /  \____\     /  \____\    /  \____\
 /  _  \____\  /   / ___/_   /   /____/   /   / ___/_
/  / \  |____|/   / /\____\ /    \    \  /   / /\____\
\  \_/ /    / \   \/ / ___/_\     \    \ \   \/ / ___/_
 \    /____/   \    / /\    \\/\   \    \ \    / /\    \
  \   \    \    \   \/  \____\  \   \    \ \   \/  \____\
   \   \    \    \      /    /   \   \____\ \      /    /
    \   \____\    \    /    /     \  /    /  \    /    /
     \  /    /     \  /    /       \/____/    \  /    /
      \/____/       \/____/xseal at harborside.com\/____/

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu