2020-03-17 01:27:14 +08:00
|
|
|
#!/bin/bash
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2020 Intel Corporation. All rights reserved.
|
|
|
|
|
2020-05-14 06:11:27 +08:00
|
|
|
# stop on most errors
|
|
|
|
set -e
|
|
|
|
|
2020-03-23 18:16:33 +08:00
|
|
|
usage ()
|
|
|
|
{
|
2020-03-17 01:27:14 +08:00
|
|
|
echo "Usage: $0 <bits in> <bits out> <rate> <input> <output>"
|
|
|
|
echo "Example: $0 16 16 48000 input.raw output.raw"
|
2020-03-23 18:16:33 +08:00
|
|
|
}
|
2020-03-17 01:27:14 +08:00
|
|
|
|
2020-03-23 18:16:33 +08:00
|
|
|
main ()
|
|
|
|
{
|
|
|
|
local COMP DIRECTION
|
2020-03-17 01:27:14 +08:00
|
|
|
|
2020-03-23 18:16:33 +08:00
|
|
|
if [ $# -ne 5 ]; then
|
|
|
|
usage "$0"
|
2020-05-14 06:11:27 +08:00
|
|
|
exit 1
|
2020-03-23 18:16:33 +08:00
|
|
|
fi
|
2020-03-17 01:27:14 +08:00
|
|
|
|
2020-03-23 18:16:33 +08:00
|
|
|
COMP=eq-iir
|
|
|
|
DIRECTION=playback
|
|
|
|
|
|
|
|
./comp_run.sh $COMP $DIRECTION "$1" "$2" "$3" "$3" "$4" "$5"
|
|
|
|
}
|
|
|
|
|
|
|
|
main "$@"
|