SqueezePlay for Joggler (Native, Ubuntu & SQPOS)

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
Post Reply
User avatar
myredhotcar
Posts: 7
Joined: Mon Nov 14, 2011 9:47 am

Re: SqueezePlay for Joggler (Standalone Native and Ubuntu)

Post by myredhotcar »

Might be a dumb question but would this work on Android?

Please forgive my ignorance. :-)

myredhotcar
myredhotcar
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: SqueezePlay for Joggler Native - chipmunks

Post by roobarb! »

Optik wrote:Have not tested the 5 hour problem.
If you ever do leave it running for >5 hours and it doesn't die, please post your asound.conf file here straight away! If a fix were found for the chipmunk audio and vanishing audio problems at the same time, I think a lot of people would be very happy. :)
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
loaded
Posts: 5
Joined: Fri Aug 19, 2011 2:14 pm

Re: SqueezePlay for Joggler Native - chipmunks

Post by loaded »

roobarb! wrote:
Optik wrote:Have not tested the 5 hour problem.
If you ever do leave it running for >5 hours and it doesn't die, please post your asound.conf file here straight away! If a fix were found for the chipmunk audio and vanishing audio problems at the same time, I think a lot of people would be very happy. :)
The holy grail!
Optik
Posts: 3
Joined: Sun Nov 13, 2011 6:21 pm

Re: SqueezePlay for Joggler Native - no chipmunks persistent

Post by Optik »

loaded wrote:
roobarb! wrote:
Optik wrote:Have not tested the 5 hour problem.
If you ever do leave it running for >5 hours and it doesn't die, please post your asound.conf file here straight away! If a fix were found for the chipmunk audio and vanishing audio problems at the same time, I think a lot of people would be very happy. :)
The holy grail!
Have now tested the the asound.conf file set up as a simple mixer and it seems ok. No chipmunks and still solid > 10 hours.

Test setup :-
jog 1: (O2 boot); wireless conn - Netgear access point - gigabit powerline adaptor
jog 2: (OpenPeak boot); wireless conn - BT HomeHub
tested both at the same time

Server running on Netgear ReadyNAS Duo - gigabit switch 1 - gigabit powerline adaptor

HomeHub - gigbit switch 2 - gigabit powerline adaptor

Jogg setup (both the same and in this order) - reflashed roobarb! method, enable SSH, sqp install roobarb! method, google calendar, google maps, iPLayer roobarb! method

No hardware mods; no other apps.
pre asound.conf - chipmunks on BBC radio feed in sqp, classic fm ok. BBC feed on native app ok, streamed FLAC files ok
post asound.conf - no chipmunks

Test 1: overnight run with BBC Radio 4 streamed to both jogs from same NAS server
Result (10 hours): jog 1 rock solid; jog 2 "motorboating"; occasional use of SQB Touch throughout test period on same stream ok

Test 2: (jog 2 only) - power off reboot - restart test on same stream
Result (13 hours): stream error showing on screen, reselected the station w/out quitting SQP, stream started ok.
Thus suspect that HomeHub cant retain the wireless link for that duration

Test 3: (jog2 only) - power off reboot - wired connection to gigabit switch 2 thus bypassing HomeHub for server conn, restart test on Radio 4 stream
Result (9 hours) - jog 2 rock solid;

Caveats - have not tried this .conf with mysqueezebox.com, have not tinkered with the parameters (have read somewhere that they ideally should be powers of 2), have not yet isolated the bit that is responsible for killing the chipmunks, cannot say if it works with all stream formats (or contents..)

Hope this is of use - see the websites noted in my other post for sources of this

------------ file here -----------------

Note: chmod +x asound.conf

# cat asound.conf
pcm.!default {
type plug;
slave.pcm "dmix0";
}

ctl.!default {
type hw;
card 0;
}
pcm.dsp0 {
type plug;
slave.pcm "dmix0";
}
ctl.dsp0 {
type hw;
card 0;
}
ctl.mixer0 {
type hw;
card 0;
}
pcm.dmix0 {
type dmix;
ipc_key 13759;

slave.pcm "hw:0,0";
slave.channels 2;

slave.rate 48000;
slave.period_size 4096;
slave.buffer_size 16384;

slave.period_time 84000;
slave.buffer_time 340000;

bindings.0 0;
bindings.1 1;
}
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: SqueezePlay for Joggler Native - no chipmunks persistent

Post by roobarb! »

Optik wrote:Have now tested the the asound.conf file set up as a simple mixer and it seems ok. No chipmunks and still solid > 10 hours.
Ooh, this is interesting! I spent a while messing around with asound.conf files but never got it right. I'll test this out and if it works, it's definitely going in the installer. :)
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
User avatar
dwl99
Posts: 765
Joined: Fri Mar 04, 2011 7:38 am
Location: Glasgow

Re: SqueezePlay for Joggler (Standalone Native and Ubuntu)

Post by dwl99 »

myredhotcar wrote:Might be a dumb question but would this work on Android?

Please forgive my ignorance. :-)

myredhotcar
In a word - no
danfoshizzle
Posts: 1271
Joined: Sun May 29, 2011 2:08 am
Location: somewhere near Rochester castle.

Re: SqueezePlay for Joggler (Standalone Native and Ubuntu)

Post by danfoshizzle »

Think I have squeezeplay for windows completed, whats the best way of testing it?
Fullscreen squeezeplay windows, server 2003, foshiz mini v1 and v2, (and a few broken builds) :P so far.....
more to come!!

Jogglers " Obi Wan" according to Pete_c :D
User avatar
pete
Posts: 2962
Joined: Mon Aug 01, 2011 6:33 am
Location: Time Traveler

Re: SqueezePlay for Joggler (Standalone Native and Ubuntu)

Post by pete »

Dan,

I can test it if you would like. Tell me what to do. I have a Squeeze server installed somewhere here.
- Pete
O2 Jogglers running EFI Ubuntu / Squeezeplayer
OpenPeak Voip Telephony / Zigbee tabletops hardware modded with Seabios / RTC / Ethernet ROM edits / SSD drives running XPe for automation screens

Auto mater
danfoshizzle
Posts: 1271
Joined: Sun May 29, 2011 2:08 am
Location: somewhere near Rochester castle.

Re: SqueezePlay for Joggler (Standalone Native and Ubuntu)

Post by danfoshizzle »

Under testing now pete, will let you know if it works or not lol
Fullscreen squeezeplay windows, server 2003, foshiz mini v1 and v2, (and a few broken builds) :P so far.....
more to come!!

Jogglers " Obi Wan" according to Pete_c :D
User avatar
pete
Posts: 2962
Joined: Mon Aug 01, 2011 6:33 am
Location: Time Traveler

Re: SqueezePlay for Joggler (Standalone Native and Ubuntu)

Post by pete »

OK; playing with network stuff (moving some connections over to Gb / POE today).....lol
- Pete
O2 Jogglers running EFI Ubuntu / Squeezeplayer
OpenPeak Voip Telephony / Zigbee tabletops hardware modded with Seabios / RTC / Ethernet ROM edits / SSD drives running XPe for automation screens

Auto mater
danfoshizzle
Posts: 1271
Joined: Sun May 29, 2011 2:08 am
Location: somewhere near Rochester castle.

Re: SqueezePlay for Joggler (Standalone Native and Ubuntu)

Post by danfoshizzle »

Always tinkering with something lol
Fullscreen squeezeplay windows, server 2003, foshiz mini v1 and v2, (and a few broken builds) :P so far.....
more to come!!

Jogglers " Obi Wan" according to Pete_c :D
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: SqueezePlay for Joggler Native - no chipmunks persistent

Post by roobarb! »

roobarb! wrote:
Optik wrote:Have now tested the the asound.conf file set up as a simple mixer and it seems ok. No chipmunks and still solid > 10 hours.
Ooh, this is interesting! I spent a while messing around with asound.conf files but never got it right. I'll test this out and if it works, it's definitely going in the installer. :)
Right, I can confirm that the chipmunks have left the radio stations that were always chipmunking, and that the software mixer is also working correctly (playing audio external to SqueezePlay at the correct rate). I'll use SqueezePlay as normal today, leave it running overnight and keep my fingers crossed that there will still be audio in the morning.
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: SqueezePlay for Joggler Native - no chipmunks persistent

Post by roobarb! »

roobarb! wrote:I'll use SqueezePlay as normal today, leave it running overnight and keep my fingers crossed that there will still be audio in the morning.
SUCCESS!

Optik, I think you may have hit upon the ideal configuration - no chipmunks, and it's working perfectly this morning. This is definitely going into the installer. Thanks for spending your time working this out; I'll have a proper read of the file and see what, if anything, stands out as getting things working properly.
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
Optik
Posts: 3
Joined: Sun Nov 13, 2011 6:21 pm

Re: SqueezePlay for Joggler Native - no chipmunks persistent

Post by Optik »

roobarb! wrote:
roobarb! wrote:I'll use SqueezePlay as normal today, leave it running overnight and keep my fingers crossed that there will still be audio in the morning.
SUCCESS!

Optik, I think you may have hit upon the ideal configuration - no chipmunks, and it's working perfectly this morning. This is definitely going into the installer. Thanks for spending your time working this out; I'll have a proper read of the file and see what, if anything, stands out as getting things working properly.
Great, confirms that it isn't some local fluke with the v. slow broadband here. Am awaiting delivery of a book on ALSA; then with a bit more info to hand will experiment with the structure of the .conf file and the settings to try and get a feel for the critical bits and limits before it falls over.
florca
Posts: 25
Joined: Mon Mar 14, 2011 9:57 pm

Re: SqueezePlay for Joggler (Standalone Native and Ubuntu)

Post by florca »

This is really great news (slightly tempered by the fact that I spent some of the weekend hacking my DVB radio streamer in the Squeezecentre server to resample the 48kHz MP2 to 44.1kHz MP3 in the server, thus bypassing the problem for me).

Anyway, one thought... Assuming that most of the content played via Squeezeplay will be 44.1kHz, would it not be better to set the default (output) rate to this rather than 48kHz? This way less content would be resampled.

Not sure what the timer and buffer values should be set to in this case, but interested in your thoughts...

Brgds
Phil
gegs
Posts: 1146
Joined: Fri Mar 04, 2011 3:22 pm
Location: Edinburgh

Re: SqueezePlay for Joggler (Standalone Native and Ubuntu)

Post by gegs »

Pardon my ignorance, but does the new asound.conf file send sound to the internal soundcard or to USB?
If it's for internal sound, what changes would I need to make the file work for USB, other than changing 'card 0' to 'card 1' ?
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: SqueezePlay for Joggler Native - no chipmunks persistent

Post by roobarb! »

Optik wrote:Great, confirms that it isn't some local fluke with the v. slow broadband here. Am awaiting delivery of a book on ALSA; then with a bit more info to hand will experiment with the structure of the .conf file and the settings to try and get a feel for the critical bits and limits before it falls over.
Great stuff - it'll be interesting to know what the clincher was!
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: SqueezePlay for Joggler (Standalone Native and Ubuntu)

Post by roobarb! »

gegs wrote:Pardon my ignorance, but does the new asound.conf file send sound to the internal soundcard or to USB?
If it's for internal sound, what changes would I need to make the file work for USB, other than changing 'card 0' to 'card 1' ?
Just glancing at it quickly now; I think you should just need to change any instances of 'card 0' to 'card 1' as you suggest. The file is set up for the internal audio system. It's possible you might need to change the line 'slave.pcm "hw:0,0";' to 'slave.pcm "hw:1,0";' as I think that may be specifying hardware output device as well. It's been a long while since I dug around in an asound.conf file, so I hope I've remember that right.
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
gegs
Posts: 1146
Joined: Fri Mar 04, 2011 3:22 pm
Location: Edinburgh

Re: SqueezePlay for Joggler (Standalone Native and Ubuntu)

Post by gegs »

Thanks roobarb, I'll give that a go. There's no harm in giving it a bash.
I'll report back on how it works with USB.

---EDIT---

It works superbly well! The asound.conf file for my USB soundcard set up is below (for all us copy and pasters)

Code: Select all

# cat asound.conf
pcm.!default {
type plug;
slave.pcm "dmix0";
}

ctl.!default {
type hw;
card 1;
}
pcm.dsp0 {
type plug;
slave.pcm "dmix0";
}
ctl.dsp0 {
type hw;
card 1;
}
ctl.mixer0 {
type hw;
card 1;
}
pcm.dmix0 {
type dmix;
ipc_key 13759;

slave.pcm "hw:1,0";
slave.channels 2;

slave.rate 48000;
slave.period_size 4096;
slave.buffer_size 16384;

slave.period_time 84000;
slave.buffer_time 340000;

bindings.0 0;
bindings.1 1;
}
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: SqueezePlay for Joggler (Standalone Native and Ubuntu)

Post by roobarb! »

Just to gauge opinion, would anyone welcome a USB-based installer for SqueezePlay? Would only be for the native OS, but it would save people faffing with SSH and wget-ing the installer script if they're not command-line inclined.
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
Post Reply