1#!/bin/bash 2# SPDX-License-Identifier: BSD-3-Clause 3# Copyright(c) 2018-2020 Intel Corporation. All rights reserved. 4 5# stop on most errors 6set -e 7 8usage () 9{ 10 echo "Usage: $1 <bits in> <bits out> <rate in> <rate out> <input> <output>" 11 echo "Example: $1 16 16 32000 48000 input.raw output.raw" 12} 13 14main() 15{ 16 local COMP DIRECTION 17 18 if [ $# -ne 6 ]; then 19 usage "$0" 20 exit 1 21 fi 22 23 COMP=src 24 DIRECTION=playback 25 26 ./comp_run.sh $COMP $DIRECTION "$@" 27} 28 29main "$@" 30