File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ from pyrilla .errors import SoundIOError , DeviceNotSupportedError
3
+ from pyrilla import Manager , Sound
4
+
5
+
6
+ def main ():
7
+ try :
8
+ Manager (5 )
9
+ except DeviceNotSupportedError as err :
10
+ print (str (err ))
11
+
12
+ try :
13
+ Sound ("nonexisting.foo" , "ridiculous" )
14
+ except SoundIOError as err :
15
+ print (str (err ))
16
+
17
+
18
+ if __name__ == "__main__" :
19
+ main ()
Original file line number Diff line number Diff line change 2
2
3
3
VERSION = (0 , 0 , 1 ) # PEP 386
4
4
__version__ = "." .join ([str (x ) for x in VERSION ])
5
+
6
+ from pyrilla .core import (
7
+ Sound ,
8
+ Voice ,
9
+ Mixer ,
10
+ Manager ,
11
+ )
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ from pyrilla .core import (
3
+ SoundIOError ,
4
+ DeviceNotSupportedError ,
5
+ )
You can’t perform that action at this time.
0 commit comments