Receive with Streamutil.c

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

 



Hi again,
>
>both (sender and receiver) uses PCMU the file is also PCMU with 8000Hz and 16Bit. 
>There exist another sample programm called playfile.c, which play wav files. This has the same problem on my maschine. But, it works fine with 48000Hz >and 16Bit L16. 
>
>So, I tried to use --codec=PCMA --recv-only or codec=L16 --recv-only in the streamutil.c.
I have a small update. If I use this parameter
/* Create sound device port. */
    status = pjmedia_snd_port_create_player(pool,
                    -1,
                   // stream_port->info.clock_rate,
                    48000,
                    stream_port->info.channel_count,
                    stream_port->info.samples_per_frame,
                    stream_port->info.bits_per_sample,
                    0,
                    &snd_port);
And only with 48000 Hz.

best regards
Steven

> From: thfalk@xxxxxxxxx
> Date: Wed, 30 Jun 2010 17:00:58 +0200
> To: pjsip at lists.pjsip.org
> Subject: Re: Receive with Streamutil.c
> 
> Hi,
> 
> this message says, that it can't set the sample rate requested:
> 
> 2010/6/30 St Burcher <stburcher at hotmail.com>:
> > ...
> > Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
> > 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1294
> 
> All the other messages or following from tihs because the alsa device
> is not ready. The sample rate requested by streamutil depends on the
> codec it has been given on the command line. There are also some alsa
> configuration which don't support all sample rates.
> 
> It works with --record-file because in this case the alsa device
> doesn't get openend. You should check what rate is requested and that
> your alsa device is configured for resampling if it doesn't support
> this rate in the hardware.
> 
> Best regards,
> 
> Thomas
> 
> _______________________________________________
> 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
 		 	   		  
Echte Freunde sagen's  per Messenger! 		 	   		  
_________________________________________________________________
http://redirect.gimas.net/?n=M1007xIMFreunde4
Echte Freunde sagen's per Messenger!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100701/47829584/attachment.html>


[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