/* Capture codec parameters */ /* Set up a capture period of 32 ms: *CAPTURE_PERIOD=PERIOD_SIZE/SAMPLE_RATE,so(32e-3)=PERIOD_SIZE/(16e3)
* => PERIOD_SIZE = 512 frames, where each "frame" consists of 1 sample of every channel (here, 2ch) */ #define CAPTURE_PERIOD_MULTIPLIER 16 #define CAPTURE_PERIOD_SIZE (CODEC_BASE_FRAME_COUNT * CAPTURE_PERIOD_MULTIPLIER) #define CAPTURE_PERIOD_COUNT 4 #define CAPTURE_PERIOD_START_THRESHOLD 0 #define CAPTURE_CODEC_SAMPLING_RATE 16000
/* Playback codec parameters */ /* number of base blocks in a short period (low latency) */ #define PLAYBACK_PERIOD_MULTIPLIER 32/* 21 ms */ /* number of frames per short period (low latency) */ #define PLAYBACK_PERIOD_SIZE (CODEC_BASE_FRAME_COUNT * PLAYBACK_PERIOD_MULTIPLIER) /* number of pseudo periods for low latency playback */ #define PLAYBACK_PERIOD_COUNT 4 #define PLAYBACK_PERIOD_START_THRESHOLD 2 #define PLAYBACK_CODEC_SAMPLING_RATE 48000 #define MIN_WRITE_SLEEP_US 5000
pthread_mutex_t lock; /* see note in out_write() on mutex acquisition order */
audio_devices_t devices; struct pcm_config config; struct pcm *pcm; bool unavailable; int standby; struct alsa_audio_device *dev; int write_threshold; unsignedint frames_written; struct timespec timestamp;
fir_filter_t* speaker_eq;
};
/* 'bytes' are the number of bytes written to audio FIFO, for which 'timestamp' is valid. *'available'isthenumberofframesavailabletoread(forinput)oryettobeplayed *(foroutput)framesinthePCMbuffer. *timestampandavailableareupdatedbypcm_get_htimestamp(),sotheyusethesame
* datatypes as the corresponding arguments to that function. */ struct aec_info { struct timespec timestamp;
uint64_t timestamp_usec; unsignedint available;
size_t bytes;
};
#endif/* #ifndef _YUKAWA_AUDIO_HW_H_ */
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-06-27)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.