#!/bin/csh

switch ($1)
	
	case play:
		ogg123 -d raw -f - "$2"
		exit 0
	breaksw
	
	case isOurFile:
		if ( { ( cat "$2" | file - | grep -q "Vorbis audio" ) } ) then
			exit 0
		else
			exit -1
		endif
	breaksw
	
endsw

exit -1
