0

Audio service across Linux machines : No Audio

asked 2014-07-08 05:53:19 -0700

snap_networks gravatar image

Unable to get audio stream across machines. If I run SinkClient & SinkService on the same machine then Audio is played out.

Linux Machine #1 : Terminal 1

$ ./alljoyn-daemon

Linux Machine #1 : Terminal 2

$ ./SinkService

Linux Machine #2 : Terminal 1

$ ./alljoyn-daemon

Linux Machine #2 : Terminal 2

$ ./SinkClient LisaHannigan.wav

AllJoyn Library version: v0.0.1 AllJoyn Library build info: AllJoyn Library v0.0.1 (Built Tue May 27 14:23:28 UTC 2014 by snap - Git: alljoyn.git branch: 'master' tag: 'v14.02' (+262 changes) commit ref: 70e6fc1905dd847b8bdc3b4d5940b237b3f20ffb) AllJoyn Audio version: v0.0.1 AllJoyn Audio build info: AllJoyn Audio v0.0.1 (Built Tue May 27 14:28:31 UTC 2014 by snap - Git: audio.git branch: 'master' tag: '<none>' commit ref: bdb70e475b6c51b8381e47c23e749051fda588b5) Found ":JuLIYm3g.2" :JuLIYm3g.2 objectPath=/Speaker/In, sessionPort=10000 Found ":JuLIYm3g.2" :JuLIYm3g.2 objectPath=/Speaker/In, sessionPort=10000 2.011 ** ERROR ALLJOYN_AUDIO lepDisp src/SinkPlayer.cc:350 | AddSink error: already being added: ER_FAIL SinkAdded: :JuLIYm3g.2</none>

open

play

edit retag flag offensive close merge delete

Comments

What are the linux machines running? Same version of Linux and sound cards?

bspencer ( 2014-07-15 04:13:28 -0700 )edit

Linux version is same but Sound cards are different. Individually, Client-Service work on each of the machines.

snap_networks ( 2014-07-15 04:16:41 -0700 )edit

looks like you can connect, what are the logs when you type play?

bspencer ( 2014-07-15 04:19:11 -0700 )edit

typing play does not give any logs

snap_networks ( 2014-07-15 04:25:13 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-07-15 04:23:33 -0700

bspencer gravatar image

updated 2014-07-15 04:23:59 -0700

We have had another developer report that due to sound card differences they needed to make a change to ALSADevice.cc:

if ((err = snd_pcm_hw_params_set_rate_near(mAudioDeviceHandle, hw_params, &sampleRate, 0)) < 0) {

Changed to:

if ((err = snd_pcm_hw_params_set_rate(mAudioDeviceHandle, hw_params, sampleRate, 0)) < 0) {

allowed the developer to have audio playback.

edit flag offensive delete publish link more

Comments

tried that ... didnt help.... any idea why I am seeing "* ERROR ALLJOYN_AUDIO lepDisp" error ?

snap_networks ( 2014-07-15 04:54:21 -0700 )edit

Hi. My SInkService on a Raspberry Pi was working but playback was too fast. When I added the asound library on SConscript to fix this then I get: ERROR ALLJOYN_AUDIO lepDisp AlsaDevice.cc (lines 134 and 138) Any ideas?

germanviscuso ( 2014-09-16 09:13:59 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-07-08 05:53:19 -0700

Seen: 144 times

Last updated: Jul 15 '14