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