• hcother

    Hi. I have a rooted Motorola Defy running Android but with the debian-kit installed so I'm using Terminal Emulator to shell in and use a debian/gnu-ish system over android. I can use sox/play/chuck.oss just fine with environment variables AUDIODEV=/dev/snd/dsp and AUDIODRIVER=oss but when I try puredata it doesn't make any sounds. I've tried the same sort of patch in windows and linux and it seems to work fine though in linux I did try the command line style of running that I mention below and it doesn't seem to take hold of the audio like the UI does.

    Any ideas? Is there more logging info I can give to figure this out?

    I have to disable the adc because Android has a hold of that and typically if I try to access that it crashes the phone.

    Here's what I am using:

    root@localhost:~# explain pdng
    pd -d 99 -noadc -verbose -stderr -oss -nogui -send ";pd dsp 1" $@

    root@localhost:~# cat sin.pd
    #N canvas 6 2 588 513 12;
    #X obj 108 109 osc~ 440;
    #X obj 108 168 dac~;
    #X connect 0 0 1 0;

    root@localhost:~# pdng sin.pd
    sys_audioapi 2
    Pd version 0.42-6
    compiled 15:27:15 Jul 18 2010
    tried /root/sin.pd and succeeded
    input channels = 0, output channels = 2
    opened /dev/dsp for writing only

    setchan 2
    error: OSS: SOUND_DSP_READ_CHANNELS failed /dev/dsp
    opened audio output on /dev/dsp; got 2 channels
    setting nfrags = 8, fragsize 1024

    audiobuffer set to 50 msec
    OSS: requested audio buffer size 8816 limited to 0
    ^CPd: signal 2
    root@localhost:~#

    posted in I/O hardware diyread more
  • hcother

    Turns out Android is using ALSA and/or PulseAudio actually... so I'll try those instead and see where that gets me.

    http://www.opensound.com/forum/viewtopic.php?f=3&t=5155 (info from oss folks on android)

    posted in I/O hardware diyread more
Internal error.

Oops! Looks like something went wrong!