Audio output only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This got me sound, but with lots of clicks and pops to work on next.

modprobe snd-dummy

--playback-dev=0 #real device
--capture-dev=1 #dummy device


On Fri, Sep 21, 2012 at 2:38 PM, Ross McKillop <ross at rsmck.co.uk> wrote:
> Sounds like you have exactly the same issue as me.
> Would be interested to know if you find a solution.
>
> Ross
>
> --
> Sent from my mobile device.
> Please excuse brevity.
>
> On 21 Sep 2012, at 22:33, Travis LaDuke <travis at techmdinc.com> wrote:
>
>> I'm on the actual device. There's no audio input on it either.
>>
>> Now that I sample apps are built, I tried :
>>
>> root at alarmpi ...pjproject-2.0.1/pjsip-apps/bin/samples/armv6l-unknown-linux-gnu#
>> ./playfile /usr/share/sounds/alsa/Front_Center.wav
>> 22:08:34.749 os_core_unix.c !pjlib 2.0.1 for POSIX initialized
>> 22:08:35.013       pa_dev.c  PortAudio sound library initialized, status=0
>> 22:08:35.017       pa_dev.c  PortAudio host api count=2
>> 22:08:35.020       pa_dev.c  Sound device count=3
>> 22:08:35.025          pjlib  select() I/O Queue created (0x1e1074)
>> 22:08:35.034   wav_player.c  File player
>> '/usr/share/sounds/alsa/Front_Center.wav' created: samp.rate=48000,
>> ch=1, bufsize=4KB, filesize=137KB
>> 22:08:35.037     playfile.c  Unable to open sound device: Unable to
>> find default audio device (PJMEDIA_EAUD_NODEFDEV) [code=420006]
>>
>> I can play sound with aplay and with auddemo.
>> auddemo says:
>> Found 3 devices:
>>  0: PA [bcm2835 ALSA: bcm2835 ALSA (hw:0,0)] (0/2)
>>  1: PA [sysdefault] (0/128)
>>  2: PA [default] (0/128)
>>
>> I tried setting --capture-dev and --playback-dev to 0 for pjsua
>>
>> --Travis
>>
>>
>> Here's more info:
>> root at alarmpi /opt/vc # aplay -l
>> **** List of PLAYBACK Hardware Devices ****
>> card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
>>  Subdevices: 8/8
>>  Subdevice #0: subdevice #0
>>  Subdevice #1: subdevice #1
>>  Subdevice #2: subdevice #2
>>  Subdevice #3: subdevice #3
>>  Subdevice #4: subdevice #4
>>  Subdevice #5: subdevice #5
>>  Subdevice #6: subdevice #6
>>  Subdevice #7: subdevice #7
>>
>> root at alarmpi ...s/bin/samples/armv6l-unknown-linux-gnu # lsmod
>> Module                  Size  Used by
>> ipv6                  289527  10
>> binfmt_misc             6800  1
>> spidev                  5028  0
>> i2c_bcm2708             3366  0
>> spi_bcm2708             4357  0
>> snd_bcm2835            19433  0
>> snd_pcm                74862  1 snd_bcm2835
>> snd_page_alloc          4871  1 snd_pcm
>> snd_timer              19614  1 snd_pcm
>> snd                    52057  3 snd_timer,snd_pcm,snd_bcm2835
>>
>>
>> On Fri, Sep 21, 2012 at 1:09 PM, Kaan Ersan <kersan at briskmobile.com> wrote:
>>> Hi,
>>> Are you running on an actual device or simulator?
>>> On the simulator, there is no microphone so it doesn't work for me.
>>>
>>> Kaan Ersan | Brisk Mobile Inc. | Software Developer
>>> kersan at briskmobile.com
>>>
>>> On 2012-09-21, at 3:59 PM, Travis LaDuke wrote:
>>>
>>> Did you have luck? I'm trying to do the same thing. I'm getting:
>>> pjsua_aud.c !..Error retrieving default audio device parameters:
>>> Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV)
>>> [status=420006]
>>>
>>> I was thinking I need to recompile again, but now I think maybe it's
>>> just because there's no input device.
>>>
>>> --Travis
>>>
>>> On Wed, Sep 5, 2012 at 1:38 AM, Ross McKillop <ross at rsmck.co.uk> wrote:
>>>
>>> Sorry looking at the thread title it's a bit misleading.  I'm looking to
>>> have pjsua answer the call and play the inbound audio only over ALSA.
>>>
>>>
>>> Maybe ' play inbound audio only ( no microphone ) ' would have been a better
>>> subject
>>>
>>>
>>> The problem is it fails to find the device but I have a feeling it needs an
>>> audio input and output device. I only have output
>>>
>>>
>>> Ross
>>>
>>>
>>> --
>>>
>>> Sent from my mobile device.
>>>
>>> Please excuse brevity.
>>>
>>>
>>> On 5 Sep 2012, at 09:17, Fedot Fedotov <fedot.fedotov at gmail.com> wrote:
>>>
>>>
>>> What do you want to do:
>>>
>>> 1) use only audio(without video)?
>>>
>>> 2) switch the audio off?
>>>
>>> _______________________________________________
>>>
>>> Visit our blog: http://blog.pjsip.org
>>>
>>>
>>> pjsip mailing list
>>>
>>> pjsip at lists.pjsip.org
>>>
>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>
>>>
>>> _______________________________________________
>>>
>>> Visit our blog: http://blog.pjsip.org
>>>
>>>
>>> pjsip mailing list
>>>
>>> pjsip at lists.pjsip.org
>>>
>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>
>>>
>>> _______________________________________________
>>> Visit our blog: http://blog.pjsip.org
>>>
>>> pjsip mailing list
>>> pjsip at lists.pjsip.org
>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>
>>>
>>>
>>> _______________________________________________
>>> Visit our blog: http://blog.pjsip.org
>>>
>>> pjsip mailing list
>>> pjsip at lists.pjsip.org
>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>
>> _______________________________________________
>> Visit our blog: http://blog.pjsip.org
>>
>> pjsip mailing list
>> pjsip at lists.pjsip.org
>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux