Modules | |
| Output Stream | |
| The following section describes the states a stream uses. | |
| Input Stream | |
| The following figure describes the states an InStream uses. | |
Enumerations | |
| enum | HPI_FORMATS { HPI_FORMAT_MIXER_NATIVE = 0, HPI_FORMAT_PCM8_UNSIGNED = 1, HPI_FORMAT_PCM16_SIGNED = 2, HPI_FORMAT_MPEG_L1 = 3, HPI_FORMAT_MPEG_L2 = 4, HPI_FORMAT_MPEG_L3 = 5, HPI_FORMAT_DOLBY_AC2 = 6, HPI_FORMAT_DOLBY_AC3 = 7, HPI_FORMAT_PCM16_BIGENDIAN = 8, HPI_FORMAT_AA_TAGIT1_HITS = 9, HPI_FORMAT_AA_TAGIT1_INSERTS = 10, HPI_FORMAT_PCM32_SIGNED = 11, HPI_FORMAT_RAW_BITSTREAM = 12, HPI_FORMAT_AA_TAGIT1_HITS_EX1 = 13, HPI_FORMAT_PCM32_FLOAT = 14, HPI_FORMAT_PCM24_SIGNED = 15, HPI_FORMAT_OEM1 = 16, HPI_FORMAT_OEM2 = 17, HPI_FORMAT_UNDEFINED = 0xffff } |
| Audio format types. More... | |
| enum | HPI_STREAM_STATES { HPI_STATE_STOPPED = 1, HPI_STATE_PLAYING = 2, HPI_STATE_RECORDING = 3, HPI_STATE_DRAINED = 4, HPI_STATE_SINEGEN = 5, HPI_STATE_WAIT = 6 } |
| Stream States. More... | |
| enum | HPI_MPEG_ANC_MODES { HPI_MPEG_ANC_HASENERGY = 0, HPI_MPEG_ANC_RAW = 1 } |
| MPEG Ancillary Data modes. More... | |
| enum | HPI_MPEG_MODES { HPI_MPEG_MODE_DEFAULT = 0, HPI_MPEG_MODE_STEREO = 1, HPI_MPEG_MODE_JOINTSTEREO = 2, HPI_MPEG_MODE_DUALCHANNEL = 3 } |
| MPEG modes MPEG modes - can be used optionally for HPI_FormatCreate() parameter dwAttributes. More... | |
Functions | |
| HPI_ERR | HPI_FormatCreate (HPI_FORMAT *pFormat, HW16 wChannels, HW16 wFormat, HW32 dwSampleRate, HW32 dwBitRate, HW32 dwAttributes) |
| Initialize an audio format structure, given various defining parameters. | |
| HPI_ERR | HPI_StreamEstimateBufferSize (HPI_FORMAT *pFormat, HW32 dwHostPollingRateInMilliSeconds, HW32 *dwRecommendedBufferSize) |
| Given a format and rate that the buffer is processed, return the correct buffer size to support ping-pong buffering of audio. | |
|
|
|
Stream States.
|
|
|
MPEG Ancillary Data modes. The mode for the ancillary data insertion or extraction to operate in.
|
|
|
MPEG modes MPEG modes - can be used optionally for HPI_FormatCreate() parameter dwAttributes. Using any mode setting other than HPI_MPEG_MODE_DEFAULT with single channel format will return an error.
|
|
||||||||||||||||||||||||||||
|
Initialize an audio format structure, given various defining parameters. Used in HPI_InStreamSetFormat() and HPI_OutStreamSetFormat()
|
|
||||||||||||||||
|
Given a format and rate that the buffer is processed, return the correct buffer size to support ping-pong buffering of audio. Calculate the minimum buffer size for a stream given the audio format that the stream will be set to use and the rate at which the host polls the stream state and reads or writes data. The buffer size returned by this function should be used as the minimum value passed to HPI_OutStreamHostBufferAllocate() or HPI_InStreamHostBufferAllocate(). If different formats and samplerates will be used on the stream, buffer size should be calculated for the highest datarate format, or the buffer should be freed and allocated again for each format change. Enabling background bus mastering (BBM) places some additional constraints on your application. In order to allow the BBM to catch up if the host app has got behind, it must be possible to transfer data faster than it is being acquired. This means that the buffer needs to be bigger than minimum. Recommended size is at least 2x minimum. A buffer size of Nx4096 makes the best use of memory.
|
1.4.6-NO