Willsy Posted June 11, 2011 Share Posted June 11, 2011 I know we discussed this a while ago, but I can't remember the nuts-and-bolts of it. Too much bloody Forth swilling around my brain! Assume I already have the 8 bit sampled data. So, how do I go about replaying it using the sound chip. I can remember that for best results one sets all three sound channels to some nominal (high) frequency, and simply controls the volume of the channels. My question is: How do I use the sample data to manipulate the volume? What's the technique? At first, I though it was as simple as mask every bit of a byte of sample data, and if the bit is a 1, set the volume for all 3 channels to max, and if it's a zero, then set the volume for all three channels to 0. However, if you had a sample that just happened to be 11111111 (is that even possible? I don't know??) then you'd actualy hear... nothing. So I think I've got the wrong end of the stick somewhere... Any insights greatly appreciated. Thanks Mark Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.