]> git.sur5r.net Git - cc65/commitdiff
Make the voice data unsigned
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 14 Feb 2002 10:17:22 +0000 (10:17 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 14 Feb 2002 10:17:22 +0000 (10:17 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1158 b7a2c559-68d2-44c3-8de9-860c34a00d81

samples/nachtm.c

index e442418d25f8e940ce1899e844492a68afb5dba9..c069b7118353001b1dcb8fe6e0d84b9355e1f8ec 100644 (file)
@@ -41,7 +41,7 @@
 
 
 
-static int Voice1 [] = {
+static unsigned Voice1 [] = {
     0x5708,0x8004,0x5204,0x5708,0x8004,0x5204,0x5704,0x5204,0x5704,0x5B04,
     0x6208,0x8008,0x6008,0x8004,0x5904,0x6008,0x8004,0x5904,0x6004,0x5904,
     0x5604,0x5904,0x5208,0x8008,0x5704,0x8004,0x570C,0x5B01,0x5B01,0x5B01,
@@ -395,7 +395,7 @@ static int Voice1 [] = {
     0x0000
 };
 
-static int Voice2 [] = {
+static unsigned Voice2 [] = {
     0x4708,0x8004,0x4204,0x4708,0x8004,0x4204,0x4704,0x4204,0x4704,0x4B04,
     0x5208,0x8008,0x5008,0x8004,0x4904,0x5008,0x8004,0x4904,0x5004,0x4904,
     0x4604,0x4904,0x4208,0x8008,0x4704,0x4704,0x4704,0x4704,0x4704,0x4704,
@@ -615,7 +615,7 @@ static int Voice2 [] = {
     0x0000
 };
 
-static int Voice3 [] = {
+static unsigned Voice3 [] = {
     0x3708,0x8004,0x3204,0x3708,0x8004,0x3204,0x3704,0x3204,0x3704,0x3B04,
     0x3208,0x8008,0x4008,0x8004,0x3904,0x4008,0x8004,0x3904,0x4004,0x3904,
     0x3604,0x4904,0x4208,0x8008,0x3704,0x3704,0x3704,0x3704,0x3704,0x3704,
@@ -897,7 +897,7 @@ typedef struct {
     unsigned char      Trigger;        /* Trigger value */
     unsigned char      Ticks;          /* Ticks for this tone */
     unsigned           Freq;           /* Actual frequency value */
-    int*               Data;           /* Pointer to data */
+    unsigned*                  Data;           /* Pointer to data */
     struct __sid_voice*        Voice;          /* Pointer to sid registers */
 } VoiceCtrl;