| libteak
    | 
BTDMP (speakers/microphone FIFO). More...
#include <teak/types.h>| Functions | |
| void | btdmpDisableInput (int channel) | 
| Disables audio recording from a BTDMP channel. | |
| void | btdmpDisableOutput (int channel) | 
| Disables audio output from a BTDMP channel. | |
| static int | btdmpReceiveFifoEmpty (int channel) | 
| Checks if the receive FIFO of a BTDMP channel is empty or not. | |
| void | btdmpSetupInputMicrophone (int channel, int irq_index) | 
| Setups a BTDMP channel to record audio from the DS microphone. | |
| void | btdmpSetupOutputSpeakers (int channel, int irq_index) | 
| Setups a BTDMP channel to output audio to the DS speakers. | |
| static int | btdmpTransmitFifoFull (int channel) | 
| Checks if the transmit FIFO of a BTDMP channel is full or not. | |
BTDMP (speakers/microphone FIFO).
| void btdmpDisableInput | ( | int | channel | ) | 
Disables audio recording from a BTDMP channel.
| channel | The BTDMP channel to disable. | 
| void btdmpDisableOutput | ( | int | channel | ) | 
Disables audio output from a BTDMP channel.
| channel | The BTDMP channel to disable. | 
| 
 | inlinestatic | 
Checks if the receive FIFO of a BTDMP channel is empty or not.
| channel | The BTDMP channel to check. | 
| void btdmpSetupInputMicrophone | ( | int | channel, | 
| int | irq_index | ||
| ) | 
Setups a BTDMP channel to record audio from the DS microphone.
Note: Remember to power on the microphone from the ARM7. You can run this in the ARM9 to do it:
And you can run this to power it off when you're no longer recording:
| channel | The BTDMP channel to use. | 
| irq_index | The CPU interrupt to use (0 to 2). | 
| void btdmpSetupOutputSpeakers | ( | int | channel, | 
| int | irq_index | ||
| ) | 
Setups a BTDMP channel to output audio to the DS speakers.
Note: Remember to setup REG_SNDEXTCNT from the ARM7 to enable sound output from the DSP. For example, for 50% DSP output and 50% ARM7 output, run this on the ARM9:
| channel | The BTDMP channel to use. | 
| irq_index | The CPU interrupt to use (0 to 2). | 
| 
 | inlinestatic | 
Checks if the transmit FIFO of a BTDMP channel is full or not.
| channel | The BTDMP channel to check. |