| Trees | Indices | Help |
|
|---|
|
|
1 import conduit
2 import conduit.datatypes.File as File
3
4 PRESET_ENCODINGS = {
5 "ogg":{"acodec":"vorbis","format":"ogg","file_extension":"ogg"},
6 "wav":{"acodec":"pcm_mulaw","format":"wav","file_extension":"wav"}
7 }
8
10 """
11 @returns: True if the given mimetype string represents an audio file
12 """
13 if mimetype.startswith("audio/"):
14 return True
15 elif mimetype == "application/ogg":
16 return True
17 else:
18 return False
19
35
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Sat Aug 2 22:18:51 2008 | http://epydoc.sourceforge.net |