{"action":"created","issue":{"url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/17","repository_url":"https://api.github.com/repos/spatialaudio/python-sounddevice","labels_url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/17/comments","events_url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/17/events","html_url":"https://github.com/spatialaudio/python-sounddevice/issues/17","id":132988668,"number":17,"title":"Program hangs when overflow/underflow","user":{"login":"fakufaku","id":1118133,"avatar_url":"https://avatars.githubusercontent.com/u/1118133?v=3","gravatar_id":"","url":"https://api.github.com/users/fakufaku","html_url":"https://github.com/fakufaku","followers_url":"https://api.github.com/users/fakufaku/followers","following_url":"https://api.github.com/users/fakufaku/following{/other_user}","gists_url":"https://api.github.com/users/fakufaku/gists{/gist_id}","starred_url":"https://api.github.com/users/fakufaku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fakufaku/subscriptions","organizations_url":"https://api.github.com/users/fakufaku/orgs","repos_url":"https://api.github.com/users/fakufaku/repos","events_url":"https://api.github.com/users/fakufaku/events{/privacy}","received_events_url":"https://api.github.com/users/fakufaku/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-11T14:31:56Z","updated_at":"2016-02-15T16:38:41Z","closed_at":null,"body":"Hello,\r\nI am trying to run sounddevice on the beaglebone black board. I use the code below to test feedthrough. However, when the latency is set to low, or the buffer size is small, the program just hangs, rather than dropping a few frames and continuing. There is no error message either. Can I do something about it ?\r\n\r\nThanks you in advance.\r\n\r\n```\r\nimport sys \r\nimport sounddevice as sd\r\nduration = 10  # seconds\r\n\r\nimport numpy as np\r\nfrom scipy.signal import lfilter\r\n\r\nsd.default.channels = (2,2)\r\nsd.default.device = (0, 1)\r\nsd.default.samplerate = 48000\r\nsd.default.dtype = ('int16','int16')\r\nsd.default.never_drop_input = False\r\nsd.default.latency = ('low','low')\r\nsd.default.blocksize = 0 \r\n\r\ndef callback(indata, outdata, frames, time, status):\r\n    if status:\r\n        print(status)\r\n\r\n    outdata[:] = indata\r\n        \r\nwith sd.Stream(callback=callback):\r\n    try:\r\n        while True:\r\n        sd.sleep(1000)\r\n    except KeyboardInterrupt:\r\n        print(\"Interrupted, how rude!\")\r\n    except Exception:\r\n        traceback.print_exc(file=sys.stdout)\r\n    sys.exit(1)\r\n```"},"comment":{"url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/comments/184290213","html_url":"https://github.com/spatialaudio/python-sounddevice/issues/17#issuecomment-184290213","issue_url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/17","id":184290213,"user":{"login":"fakufaku","id":1118133,"avatar_url":"https://avatars.githubusercontent.com/u/1118133?v=3","gravatar_id":"","url":"https://api.github.com/users/fakufaku","html_url":"https://github.com/fakufaku","followers_url":"https://api.github.com/users/fakufaku/followers","following_url":"https://api.github.com/users/fakufaku/following{/other_user}","gists_url":"https://api.github.com/users/fakufaku/gists{/gist_id}","starred_url":"https://api.github.com/users/fakufaku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fakufaku/subscriptions","organizations_url":"https://api.github.com/users/fakufaku/orgs","repos_url":"https://api.github.com/users/fakufaku/repos","events_url":"https://api.github.com/users/fakufaku/events{/privacy}","received_events_url":"https://api.github.com/users/fakufaku/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T16:38:41Z","updated_at":"2016-02-15T16:38:41Z","body":"Hi thanks for the answer.\r\n\r\nActually it seems I can make it work by cranking up the frequency of the CPU to 1GHz and recompiling the latest version of portaudio.\r\n\r\nAnother quick quick question, is it possible to have different sampling rates for the input and output ?"}}