2000-04-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* extfs/audio: Added a way to browse audio CDs conviently
Этот коммит содержится в:
родитель
9e7b2625d5
Коммит
5b81966b3e
@ -1,5 +1,7 @@
|
|||||||
2000-04-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
|
2000-04-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
|
||||||
|
|
||||||
|
* extfs/audio: Added a way to browse audio CDs conviently
|
||||||
|
|
||||||
* undelfs.c: use NULLs instead of 0s when you assign to pointers!
|
* undelfs.c: use NULLs instead of 0s when you assign to pointers!
|
||||||
|
|
||||||
2000-04-05 Andrew V. Samoilov <sav@bcs.zp.ua>
|
2000-04-05 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||||
|
37
vfs/extfs/audio
Исполняемый файл
37
vfs/extfs/audio
Исполняемый файл
@ -0,0 +1,37 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
#
|
||||||
|
# Written by Pavel Machek
|
||||||
|
#
|
||||||
|
# (C) 2000 The Free Software Foundation.
|
||||||
|
#
|
||||||
|
# FIXME: it would be much nicer to use names like track-01.wav, like cdfs does.
|
||||||
|
#
|
||||||
|
|
||||||
|
audiofs_list ()
|
||||||
|
{
|
||||||
|
cdparanoia -Q -d $1 2>&1 | grep '^[ 0-9][ 0-9][ 0-9]\.' | while true
|
||||||
|
do
|
||||||
|
read A B C || break
|
||||||
|
SIZE=$[44+$B*2352]
|
||||||
|
echo "-r--r--r-- 4 0 0 $SIZE Jan 1 0:00 track${A}wav"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
audiofs_copyout ()
|
||||||
|
{
|
||||||
|
TRACK=`echo $2 | sed 's/track//' | sed 's/\.wav//'`
|
||||||
|
cdparanoia -d $1 -v $TRACK $3
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ ! -b $2 ]
|
||||||
|
then
|
||||||
|
BASE=/dev/cdrom
|
||||||
|
else
|
||||||
|
BASE=$2
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
list) audiofs_list $BASE; exit 0;;
|
||||||
|
copyout) audiofs_copyout $BASE $3 $4; exit 0;;
|
||||||
|
esac
|
||||||
|
exit 1
|
@ -48,3 +48,6 @@ debd
|
|||||||
# apt frontend
|
# apt frontend
|
||||||
apt:
|
apt:
|
||||||
deba
|
deba
|
||||||
|
|
||||||
|
# Simple filesystem for audio cdroms. Use /dev/cdrom#audio (or /#audio).
|
||||||
|
audio
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user