GithubHelp home page GithubHelp logo

Comments (4)

fumieval avatar fumieval commented on May 27, 2024

The first argument of example-portaudio is a sample rate (normally, it will be 44100 or 48000) and the second is a buffer size request (preferred range is 128~2048).

There are no audio devices that run with 500Hz sampling rate.

from bindings-portaudio.

capsjac avatar capsjac commented on May 27, 2024

$ example-portaudio 48000 2048
Initialization: 0
Available APIs:
Opening the default stream: -9985
example-portaudio: user error (Failed.)

$ example-portaudio 44100 128
Initialization: 0
Available APIs:
Opening the default stream: -9985
example-portaudio: user error (Failed.)

$ example-portaudio 44100 2048
Initialization: 0
Available APIs:
Opening the default stream: -9985
example-portaudio: user error (Failed.)

It still doesn't work.
rate and buf are not used to list available APIs (as I see), thus there exists some issue other than mismatched arguments, I think.

from bindings-portaudio.

fumieval avatar fumieval commented on May 27, 2024

Did you install bindings-portauio with -fALSA?

However, this issue will not occur as soon as I remove all the builtin things for Linux/Mac.

from bindings-portaudio.

capsjac avatar capsjac commented on May 27, 2024

$ cabal install -fALSA
example$ ghc sine
example$ ./sine 44100 2048
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:947:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:947:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only
playback stream
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only
playback stream
Initialization: 0
Available APIs:
(0,"ALSA")
Opening the default stream: 0
Starting the stream: 0
Stopping the stream: 0
Closing the stream: 0

Is it okey?
(by the way, did you checked my email?)

from bindings-portaudio.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.