Skip to content

audiostream module. Segmentation fault #150

@oceanpix

Description

@oceanpix

I'm trying to make use of the audiostream module (v0.2) that is currently installed by default in QPython but whenever I call the get_input() or get_output() function, I get a segmentation fault error.

In an old post of stackoverflow I read that an user had a similar problem in the past, but unfortunately no answer have been published to solve this issue so far.
http://stackoverflow.com/questions/35877208/raw-pcm-audio-playback-with-qpython-audiostream

In this previous ticket (#39) another use arise a similar issue with this module.
#39

This is a test code example directly from the developer website that return the segmentation fault error

from audiostream import get_input

declare a callback where we'll receive the data

def callback_mic(data):
print 'i got', len(data)

get the microphone (or from another source if available)

mic = get_input(callback=callback_mic)
mic.start()
sleep(5)
mic.stop()

https://audiostream.readthedocs.io/en/latest/

I'm running QPython 1.2.7 on a Nexus5 with Marshmallow. All the permission in the app are enabled as well as the recording capabilities.

Thank you very much for your support!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions