mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
amalgamation
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@227 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
a4f0cc8647
commit
eff55556cf
35 changed files with 607 additions and 363 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
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);
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue