Helix MP3 Decoder. More...
Data Structures | |
| struct | _HXDCB |
| struct | _MP3PLAYERINFO |
Defines | |
| #define | AUDIO_DAC_MIN_GAIN -73 |
| #define | AUDIO_DAC_MAX_GAIN 6 |
| #define | AUDIO_SETWRITETIMEOUT 0x010d |
| #define | AUDIO_GETWRITETIMEOUT 0x010e |
| #define | AUDIO_PLAY 0x3001 |
| Immediately start playing. | |
| #define | AUDIO_CANCEL 0x3002 |
| Immediately stop playing and discard buffer. | |
| #define | AUDIO_GET_STATUS 0x3003 |
| #define | AUDIO_GET_PLAYGAIN 0x3004 |
| #define | AUDIO_SET_PLAYGAIN 0x3005 |
| #define | AUDIO_GET_PBSIZE 0x3006 |
| #define | AUDIO_SET_PBSIZE 0x3007 |
| #define | AUDIO_GET_PBLEVEL 0x3008 |
| #define | AUDIO_GET_PBWLOW 0x3009 |
| #define | AUDIO_SET_PBWLOW 0x300A |
| #define | AUDIO_GET_PBWHIGH 0x300B |
| #define | AUDIO_SET_PBWHIGH 0x300C |
| #define | AUDIO_BEEP 0x300F |
| #define | AUDIO_GET_DECINFO 0x3010 |
| Retrieve decoder information. | |
| #define | AUDIO_GET_DECCAPS 0x3011 |
| Retrieve decoder capabilities. | |
| #define | AUDIO_GET_DECFMTS 0x3012 |
| Retrieve decoder formats. | |
| #define | AUDIO_SET_DECFMTS 0x3013 |
| Enable or disable specific decoder formats. | |
| #define | AUDIO_GET_CODINFO 0x3014 |
| Retrieve encoder information. | |
| #define | AUDIO_GET_CODCAPS 0x3015 |
| Retrieve encoder capabilities. | |
| #define | AUDIO_GET_CODFMTS 0x3016 |
| Retrieve encoder formats. | |
| #define | AUDIO_SET_CODFMTS 0x3017 |
| Enable or disable specific encoder formats. | |
| #define | AUDIO_GET_MIDINFO 0x3018 |
| Retrieve midi information. | |
| #define | AUDIO_GET_MIDCAPS 0x3019 |
| Retrieve midi capabilities. | |
| #define | CODEC_STATUS_IDLE 0 |
| #define | CODEC_STATUS_PLAYING 1 |
Typedefs | |
| typedef struct _HXDCB | HXDCB |
| typedef struct _MP3PLAYERINFO | MP3PLAYERINFO |
Functions | |
| void | FeederThread (void *arg) |
Variables | |
| NUTDEVICE | devHelixCodec |
| Device information structure. | |
| NUTDEVICE | devHelixCodec |
| Device information structure. | |
Helix MP3 Decoder.
| #define AUDIO_DAC_MIN_GAIN -73 |
Referenced by VsDecoderSetVolume().
| #define AUDIO_DAC_MAX_GAIN 6 |
Referenced by VsDecoderSetVolume().
| #define AUDIO_SETWRITETIMEOUT 0x010d |
Referenced by VsCodecIOCtl().
| #define AUDIO_GETWRITETIMEOUT 0x010e |
Referenced by VsCodecIOCtl().
| #define AUDIO_PLAY 0x3001 |
Immediately start playing.
Referenced by VsCodecIOCtl().
| #define AUDIO_CANCEL 0x3002 |
Immediately stop playing and discard buffer.
Referenced by VsCodecIOCtl().
| #define AUDIO_GET_STATUS 0x3003 |
Referenced by VsCodecIOCtl().
| #define AUDIO_GET_PLAYGAIN 0x3004 |
Referenced by VsCodecIOCtl().
| #define AUDIO_SET_PLAYGAIN 0x3005 |
Referenced by VsCodecIOCtl().
| #define AUDIO_GET_PBSIZE 0x3006 |
Referenced by VsCodecIOCtl().
| #define AUDIO_SET_PBSIZE 0x3007 |
Referenced by VsCodecIOCtl().
| #define AUDIO_GET_PBLEVEL 0x3008 |
Referenced by VsCodecIOCtl().
| #define AUDIO_GET_PBWLOW 0x3009 |
Referenced by VsCodecIOCtl().
| #define AUDIO_SET_PBWLOW 0x300A |
Referenced by VsCodecIOCtl().
| #define AUDIO_GET_PBWHIGH 0x300B |
Referenced by VsCodecIOCtl().
| #define AUDIO_SET_PBWHIGH 0x300C |
Referenced by VsCodecIOCtl().
| #define AUDIO_BEEP 0x300F |
Referenced by VsCodecIOCtl().
| #define AUDIO_GET_DECINFO 0x3010 |
Retrieve decoder information.
Referenced by VsCodecIOCtl().
| #define AUDIO_GET_DECCAPS 0x3011 |
Retrieve decoder capabilities.
Referenced by VsCodecIOCtl().
| #define AUDIO_GET_DECFMTS 0x3012 |
Retrieve decoder formats.
| #define AUDIO_SET_DECFMTS 0x3013 |
Enable or disable specific decoder formats.
| #define AUDIO_GET_CODINFO 0x3014 |
Retrieve encoder information.
Referenced by VsCodecIOCtl().
| #define AUDIO_GET_CODCAPS 0x3015 |
Retrieve encoder capabilities.
Referenced by VsCodecIOCtl().
| #define AUDIO_GET_CODFMTS 0x3016 |
Retrieve encoder formats.
| #define AUDIO_SET_CODFMTS 0x3017 |
Enable or disable specific encoder formats.
| #define AUDIO_GET_MIDINFO 0x3018 |
Retrieve midi information.
Referenced by VsCodecIOCtl().
| #define AUDIO_GET_MIDCAPS 0x3019 |
Retrieve midi capabilities.
Referenced by VsCodecIOCtl().
| #define CODEC_STATUS_IDLE 0 |
Referenced by FeederThread(), VsCodecIOCtl(), VsCodecRead(), and VsDecoderBufferInit().
| #define CODEC_STATUS_PLAYING 1 |
Referenced by FeederThread(), VsCodecIOCtl(), and VsCodecRead().
| typedef struct _MP3PLAYERINFO MP3PLAYERINFO |
| void FeederThread | ( | void * | arg | ) |
References CODEC_STATUS_IDLE, CODEC_STATUS_PLAYING, _HXDCB::dcb_bufque, _HXDCB::dcb_feedme, _HXDCB::dcb_lvol, _HXDCB::dcb_pbstat, _HXDCB::dcb_pbwhi, _HXDCB::dcb_rvol, _HXDCB::dcb_scmd, _NUTDEVICE::dev_dcb, free(), HXREQ_CANCEL, HXREQ_PLAY, HXREQ_VOLUPD, MAINBUF_SIZE, malloc(), memcpy(), NULL, NUT_WAIT_INFINITE, NutEventPost(), NutEventWait(), NutSegBufReadLast(), NutSegBufReadRequest(), NutSegBufReset(), NutSegBufUsed(), and NutThreadSetPriority().
Device information structure.
An application must pass a pointer to this structure to NutRegisterDevice() before using this driver.
The device is named audio0.
{
0,
{'a', 'u', 'd', 'i', 'o', '0', 0, 0, 0},
IFTYP_CHAR,
0,
0,
0,
&dcb,
HelixInit,
HelixIOCtl,
NULL,
HelixWrite,
HelixWrite_P,
HelixOpen,
HelixClose,
NULL
}
Device information structure.
An application must pass a pointer to this structure to NutRegisterDevice() before using this driver.
The device is named audio0.