File: render.h

package info (click to toggle)
firmware-microbit-micropython 1.0.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 25,448 kB
  • sloc: ansic: 83,496; cpp: 27,664; python: 2,475; asm: 274; makefile: 245; javascript: 41; sh: 25
file content (16 lines) | stat: -rwxr-xr-x 381 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef RENDER_H
#define RENDER_H

#include "sam.h"

void Render(sam_memory* sam);
void SetMouthThroat(unsigned char mouth, unsigned char throat);
void OutputFrames(sam_memory *sam, unsigned char frame_count);

/** Scaling c64 rate to sample rate */
// Rate for 22.05kHz
// #define SCALE_RATE(x) (((x)*1310)>>16)
// Rate for 7.8125KHz
#define SCALE_RATE(x) (((x)*420)>>16)

#endif