swidnikk wrote: 
> Hi Triode, 
> This is regarding MP3 playback on Mac. Your squeezelite-osx-i386 does
> not work for me either with the logs reporting wrong architecture. For
> your plugin to work I believe you need to force squeezelite to run as a
> *64bit application* and not an i386 architecture. Specifically, the
> rudix mpg123 MP3 codec for Mac is not a universal binary and 64bit
> architecture only, so squeezelite must be run as 64bit application. I
> confirmed that your squeezelite universal binary was being executed for
> i386 by inspecting the running process. I suspect that Mac prefers i386
> because the parent process LMS or Local Player plugin is i386.
> 
> I was able to get MP3 playback to work with the universal Mac binary you
> were previously building (v1.0rc4) without manually running squeezelite.
> I did this by wrapping your binary in a bash script that forces it to
> execute as 64bit. My hack is outlined below. 
> 
> Step 1
> Copy squeezelite to /usr/local/bin/squeezelite-osx-v1.0rc4
> 
> Step 2
> Create the file /usr/local/bin/squeezelite-osx.x64
> #!/bin/bash
> arch -x86_64 /usr/local/bin/squeezelite-osx-v1.0rc4 "$@"
> 
> Step 3
> cd ~/Library/Caches/Squeezebox/InstalledPlugins/Plugins/LocalPlayer/Bin
> ln -s /usr/local/bin/squeezelite-osx.x86_64 squeezelite-osx-i386
> 
> This works because,
> • LMS runs as i386 architecture
> • Mac wants squeezelite to run as i386 by default but is forced to run
> as x64 through the wrapper (confirmed as x64 by inspecting running
> process)
> • now squeezelite can use 64bit mp3 codecs

OK so the issue here is possibly the rudix binary is different depending
on which version it is.  The snow leapard one is definately i386 as this
works for me, perhaps the other one is x86_64 only.  I will look at how
to best support.  If only they were universal for intel then all I would
need to do is use a universal binary for squeezelite.


------------------------------------------------------------------------
Triode's Profile: http://forums.slimdevices.com/member.php?userid=17
View this thread: http://forums.slimdevices.com/showthread.php?t=97766

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to