csabahruska / proteaaudio

Simple audio library for Windows, Linux, OSX. Supports Mp3, Ogg, Wav playback and multichannel mixing.
28 stars 8 forks source link

initAudio just segfaults #1

Closed locallycompact closed 5 years ago

locallycompact commented 5 years ago

Hi, using the initAudio call simply segfaults for me

Prelude> import Sound.ProteaAudio              
Prelude Sound.ProteaAudio>  initAudio 64 44100 1024
/tmp/nix-shell-22659-0/rc: line 1: 23749 Segmentation fault      '/nix/store/g8mbp29sl24xp0ap8l7zbq9ih1ydqiil-stack-1.9.3/bin/stack' $STACK_IN_NIX_EXTRA_ARGS '--internal-re-exec-version=1.9.3' 'ghci'
csabahruska commented 5 years ago

What is the underlying audio system? It should be PulseAudio. It works on my system (Ubuntu 16.04).

csabahruska commented 5 years ago

Which version do you use of proteaaudio?

locallycompact commented 5 years ago

Hi, yes it is pulseaudio. Using latest head of proteaaudio.

csabahruska commented 5 years ago

I see. What is your operating system? Is it nixos? Does pulseaudio work with other programs? i.e. vlc, mplayer Does it fail only in ghci or with the compiled program also?

locallycompact commented 5 years ago

Yes NixOS

pulseaudio works fine otherwise, failed both compiled and in ghci

locallycompact commented 5 years ago

Fixed, closing

csabahruska commented 5 years ago

fixed in PR: https://github.com/csabahruska/proteaaudio/pull/2