notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
amalgamation
[picodrive.git]
/
Pico
/
cd
/
pcm.c
diff --git
a/Pico/cd/pcm.c
b/Pico/cd/pcm.c
index
8f17a7e
..
6ac493a
100644
(file)
--- a/
Pico/cd/pcm.c
+++ b/
Pico/cd/pcm.c
@@
-7,7
+7,7
@@
static unsigned int g_rate = 0; // 18.14 fixed point
static unsigned int g_rate = 0; // 18.14 fixed point
-void pcm_write(unsigned int a, unsigned int d)
+
PICO_INTERNAL_ASM
void pcm_write(unsigned int a, unsigned int d)
{
//printf("pcm_write(%i, %02x)\n", a, d);
{
//printf("pcm_write(%i, %02x)\n", a, d);
@@
-50,7
+50,7
@@
void pcm_write(unsigned int a, unsigned int d)
}
}
-void pcm_set_rate(int rate)
+
PICO_INTERNAL
void pcm_set_rate(int rate)
{
float step = 31.8 * 1024.0 / (float) rate; // max <4 @ 8000Hz
step *= 256*256/4;
{
float step = 31.8 * 1024.0 / (float) rate; // max <4 @ 8000Hz
step *= 256*256/4;
@@
-60,9
+60,7
@@
void pcm_set_rate(int rate)
}
}
-// TODO: make use of the fact that max_length == 3
-
-void pcm_update(int *buffer, int length, int stereo)
+PICO_INTERNAL void pcm_update(int *buffer, int length, int stereo)
{
struct pcm_chan *ch;
unsigned int step, addr;
{
struct pcm_chan *ch;
unsigned int step, addr;