summaryrefslogtreecommitdiff
path: root/cras/src/tests/iodev_stub.h
blob: e8016dd3d0d921fc188385e930a3f68e3d709646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* Copyright 2017 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef IODEV_STUB_H_
#define IODEV_STUB_H_

#include <time.h>

void iodev_stub_reset();

void iodev_stub_est_rate_ratio(cras_iodev* iodev, double ratio);

void iodev_stub_update_rate(cras_iodev* iodev, int data);

void iodev_stub_on_internal_card(cras_ionode* node, int data);

void iodev_stub_frames_queued(cras_iodev* iodev, int ret, timespec ts);

void iodev_stub_valid_frames(cras_iodev* iodev, int ret, timespec ts);

bool iodev_stub_get_drop_time(cras_iodev* iodev, timespec* ts);

#endif  // IODEV_STUB_H_