summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/sound.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockboy/sound.c')
-rw-r--r--apps/plugins/rockboy/sound.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/apps/plugins/rockboy/sound.c b/apps/plugins/rockboy/sound.c
index 036a05a058..c5621d343a 100644
--- a/apps/plugins/rockboy/sound.c
+++ b/apps/plugins/rockboy/sound.c
@@ -66,9 +66,9 @@ static const byte soundWavePattern[4][32] = {
66 0x01,0x01,0x01,0x01, 66 0x01,0x01,0x01,0x01,
67 0xff,0xff,0xff,0xff, 67 0xff,0xff,0xff,0xff,
68 0xff,0xff,0xff,0xff} 68 0xff,0xff,0xff,0xff}
69} ICONST_ATTR; 69};
70 70
71int soundFreqRatio[8] = { 71int soundFreqRatio[8] ICONST_ATTR= {
72 1048576, // 0 72 1048576, // 0
73 524288, // 1 73 524288, // 1
74 262144, // 2 74 262144, // 2
@@ -77,9 +77,9 @@ int soundFreqRatio[8] = {
77 104858, // 5 77 104858, // 5
78 87381, // 6 78 87381, // 6
79 74898 // 7 79 74898 // 7
80} ICONST_ATTR; 80};
81 81
82int soundShiftClock[16]= { 82int soundShiftClock[16] ICONST_ATTR= {
83 2, // 0 83 2, // 0
84 4, // 1 84 4, // 1
85 8, // 2 85 8, // 2
@@ -96,19 +96,7 @@ int soundShiftClock[16]= {
96 16384, // 13 96 16384, // 13
97 1, // 14 97 1, // 14
98 1 // 15 98 1 // 15
99} ICONST_ATTR; 99};
100
101static const int freqtab[8] =
102{
103 (1<<14)*2,
104 (1<<14),
105 (1<<14)/2,
106 (1<<14)/3,
107 (1<<14)/4,
108 (1<<14)/5,
109 (1<<14)/6,
110 (1<<14)/7
111} ICONST_ATTR;
112 100
113struct snd snd IBSS_ATTR; 101struct snd snd IBSS_ATTR;
114 102