Sound and mixing channels question
From: Mats (spamenot.mog.pettersson_at_telia.com)
Date: 02/29/04
- Next message: Edward G. Nilges: "Re: Arthur O'Dwyer on the feasibility of simulating a Turing Machine"
- Previous message: Papadopoulos Giannis: "Re: good ASCII editor with features?"
- Next in thread: MSCHAEF.COM: "Re: Sound and mixing channels question"
- Reply: MSCHAEF.COM: "Re: Sound and mixing channels question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 29 Feb 2004 01:02:33 GMT
Hi!
I just started looking in to programming a sound app. These days it
seems that most apps that i found source for on internet mixes multiple
sound channels (in a music app like soundtracker) with software instead
on relying on that the soundcard supports multiple channels.
My question is though if say, you have a one byte per sample (or 8 bit
per sample if you like) buffer and mixes say two channels into that
buffer, the code i've seen just adds the two channels, but what happens
if one or several bytes overflow? The output of say 240+128 is 368 which
would set the mixed byte to 368-256=112?!? Wouldn't this distort the sound?
If anyone could point out somekind of tutorial or examples of how this
should be handled i would be very greatful. :)
Mackan
-- Remove all before "mog" to reply by email.
- Next message: Edward G. Nilges: "Re: Arthur O'Dwyer on the feasibility of simulating a Turing Machine"
- Previous message: Papadopoulos Giannis: "Re: good ASCII editor with features?"
- Next in thread: MSCHAEF.COM: "Re: Sound and mixing channels question"
- Reply: MSCHAEF.COM: "Re: Sound and mixing channels question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|