|
7 | 7 | client = jack.Client('Metadata-Client')
|
8 | 8 | port = client.inports.register('input')
|
9 | 9 |
|
10 |
| -client.set_property(client.uuid, jack.METADATA_PRETTY_NAME, 'Best Client Ever') |
| 10 | +client.set_property(client, jack.METADATA_PRETTY_NAME, 'Best Client Ever') |
11 | 11 | print('Client "pretty" name:',
|
12 |
| - jack.get_property(client.uuid, jack.METADATA_PRETTY_NAME)) |
| 12 | + jack.get_property(client, jack.METADATA_PRETTY_NAME)) |
13 | 13 |
|
14 | 14 | client.set_property(
|
15 |
| - port.uuid, jack.METADATA_PRETTY_NAME, b'a good port', 'text/plain') |
| 15 | + port, jack.METADATA_PRETTY_NAME, b'a good port', 'text/plain') |
16 | 16 | print('Port "pretty" name:',
|
17 |
| - jack.get_property(port.uuid, jack.METADATA_PRETTY_NAME)) |
| 17 | + jack.get_property(port, jack.METADATA_PRETTY_NAME)) |
18 | 18 |
|
19 | 19 | print('All client properties:')
|
20 |
| -pprint(jack.get_properties(client.uuid)) |
| 20 | +pprint(jack.get_properties(client)) |
21 | 21 |
|
22 | 22 | print('All port properties:')
|
23 |
| -pprint(jack.get_properties(port.uuid)) |
| 23 | +pprint(jack.get_properties(port)) |
24 | 24 |
|
25 | 25 | print('All properties:')
|
26 | 26 | pprint(jack.get_all_properties())
|
27 | 27 |
|
28 |
| -client.remove_property(port.uuid, jack.METADATA_PRETTY_NAME) |
29 |
| -client.remove_properties(client.uuid) |
| 28 | +client.remove_property(port, jack.METADATA_PRETTY_NAME) |
| 29 | +client.remove_properties(client) |
30 | 30 | client.remove_all_properties()
|
0 commit comments