![]() |
Maestro Audio Framework v 1.5
NXP Semiconductors
|
audio sink element's data structures More...
#include <audio_sink.h>
Data Fields | |
| int32_t(* | change_state )(struct _StreamElement *, PipelineState) |
| Change state function pointer. | |
| int32_t(* | set_property )(struct _StreamElement *, uint16_t prop, uint32_t val) |
| Set property function pointer. | |
| int32_t(* | get_property )(struct _StreamElement *, uint16_t prop, uint32_t *val_ptr) |
| Get property function pointer. | |
| void * | parent |
| Parent pointer. | |
| int8_t | key |
| Key. | |
| int8_t | depth |
| Depth. | |
| PipelineState | state |
| Pipeline state. | |
| StreamElementType | type |
| Element type. | |
| PadSrc | src_pad [MAX_NUM_PADS] |
| Source pads. | |
| PadSink | sink_pad [MAX_NUM_PADS] |
| Sink pads. | |
| struct _StreamElement * | sibling |
| Sibling pointer. | |
| uint32_t | chunk_size |
| chunk size | |
| uint32_t | bits_per_sample |
| bits per sample | |
| uint32_t | num_channels |
| number of audio channels | |
| uint32_t | sample_rate |
| sample rate per second | |
| uint32_t | format |
| PCM, endian, word length. | |
| int | volume |
| Output volume. | |
| int32_t | error_element |
| saved error type | |
| uint32_t | time_reported_msec |
| last elapsed time reported to application | |
| uint32_t | time_report_diff |
| Amount of time that should have passed before sending another message. | |
| uint32_t | elapsed_time_msec |
| elapsed time in million seconds | |
| uint64_t | elapsed_time_usec |
| elapsed time In micro seconds | |
| uint32_t | device_driver_type |
| device driver type specific | |
| uint32_t | device_name |
| This is provided just in case an enumeration is done by ALSA or OSS probably before opening the device. | |
| char | device_string_name [MAX_DEVICE_NAME_LENGTH] |
| Device string name. | |
| void * | device_info |
| sink device infomations about sink device like SSI, ALSA, etc | |
| const AudioSinkPadDeviceIOFuncType * | device_ptr |
| device operations provided by sink device | |
| uint32_t | last_time_sample_rate |
| Last time sample rate. | |
| bool | buffer_use_chunk_size |
| Use the configured chunk size for buffer sizing. | |
| uint32_t | last_num_channels |
| last time number of audio channels | |
| uint32_t | last_chunk_size |
| last time chunk size | |
| bool | device_started |
| uint8_t | codec_num_channels |
| Number of channels for HW codec. | |
| uint8_t | codec_bits_per_sample |
| Sample width for HW codec. | |
This data structure is created by create_element, initialized by audiosink_init_element
| bool ElementAudioSink::device_started |
Indicates whether the device was started