-! (c)2009 Joe Groff bsd license
-USING: ascii assocs io.pathnames kernel namespaces
-vocabs ;
+! Copyright (C) 2009 Joe Groff.
+! See http://factorcode.org/license.txt for BSD license.
+USING: ascii assocs io.pathnames namespaces vocabs ;
IN: audio.loader
ERROR: unknown-audio-extension extension ;
: read-audio ( path -- audio )
dup file-extension >lower audio-types get ?at
[ call( path -- audio ) ]
- [ throw-unknown-audio-extension ] if ;
+ [ unknown-audio-extension ] if ;
"audio.wav" require
"audio.aiff" require