diff --git a/examples/play_file.py b/examples/play_file.py index 45abd96..8182c2a 100755 --- a/examples/play_file.py +++ b/examples/play_file.py @@ -40,7 +40,7 @@ def print_error(*args): def xrun(delay): - print_error("An xrun occured, increase JACK's period size?") + print_error("An xrun occurred, increase JACK's period size?") def shutdown(status, reason): @@ -109,7 +109,7 @@ def process(frames): except KeyboardInterrupt: parser.exit('\nInterrupted by user') except (queue.Full): - # A timeout occured, i.e. there was an error in the callback + # A timeout occurred, i.e. there was an error in the callback parser.exit(1) except Exception as e: parser.exit(type(e).__name__ + ': ' + str(e)) diff --git a/src/jack.py b/src/jack.py index e309214..52e86b4 100644 --- a/src/jack.py +++ b/src/jack.py @@ -729,7 +729,7 @@ def set_shutdown_callback(self, callback): After server shutdown, the client is *not* deallocated by JACK, the user (that's you!) is responsible to properly - use `close()` to release client ressources. + use `close()` to release client resources. Alternatively, the `Client` object can be used as a *context manager* in a *with statement*, which takes care of activating, deactivating and closing the client @@ -1256,7 +1256,7 @@ def set_xrun_callback(self, callback): ---------- callback : callable User-supplied function that is called whenever an xrun has - occured. It must have this signature:: + occurred. It must have this signature:: callback(delayed_usecs: float) -> None