[Top][All Lists]

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

Re: [Linphone-developers] playing wav files with mediastreamer2

From: Simon Morlat
Subject: Re: [Linphone-developers] playing wav files with mediastreamer2
Date: Tue, 13 Feb 2007 13:46:13 +0100
User-agent: KMail/1.9.5

I don't think lc->sound_conf.ring_sndcard is null after linphone_core_init. It 
cannot be null unless you really have no soundcard at all on your system.

The SndCard object is necessary to tell ring_start_with_cb() on which card the 
wav file has to be played.

you can obtain a default card using that function:


Le mardi 6 février 2007 06:41, Rob Barnes a écrit :
> I am planning to use linphone for communication with an embedded board
> (gumstix). I need to also play short wav clips while communication is not
> active. I figured I could just use the mediastreamer2 library for playing
> these clips.
> Right now I'm just testing on a host computer.
> When I run: linphone_core_preview_ring(ls,"file.wav",NULL,NULL) everything
> works great. The reason I don't just use linphone_core_preview_ring() is
> that I would like more control over the output, such as being able to
> asynchronously stop the audio.
> Inside linphone_core_preview_ring(), the function ring_start_with_cb() is
> called. So it seems what I should be able to just call ring_start_with_cb()
> or ring_start() on its own. Yet this fails with the error: "assertion
> 'sndcard!=NULL' failed".
> The sndcard (lc->sound_conf.ring_sndcard) appears to be set inside
> liphone_core_new yet it is NULL when ever I test it. Even after a
> successful linphone_core_preview_ring() call, lc->sound_conf.ring_sndcard
> is still NULL.
> Any suggestions?
> Thanks
> -RobB

reply via email to

[Prev in Thread] Current Thread [Next in Thread]