Mac Audio - my Hackintosh based Music Player

Discussion in 'Others' started by MacTester57, Mar 28, 2013.

  1. blackthund3r

    blackthund3r

    Joined:
    Jun 1, 2011
    Messages:
    36
    Mobo:
    Gigabyte GA-Z77-DS3H Rev 1.0
    CPU:
    Intel Core i5 3570k @ 4.4GHz
    Graphics:
    MSI GeForce GTX 560 Ti Hawk
    Classic Mac:
    iBook
    Mobile Phone:
    Android, iOS
    Aug 5, 2013 at 3:24 PM #91
    blackthund3r

    blackthund3r

    Joined:
    Jun 1, 2011
    Messages:
    36
    Mobo:
    Gigabyte GA-Z77-DS3H Rev 1.0
    CPU:
    Intel Core i5 3570k @ 4.4GHz
    Graphics:
    MSI GeForce GTX 560 Ti Hawk
    Classic Mac:
    iBook
    Mobile Phone:
    Android, iOS
    I have a solution for the landscape cover...

    There is an Apple framework called Scripting Bridge which is compatible with iTunes. I wrote a small app (for fun :p) called iTweetMiTunes which tweets the music that iTunes is playing along with an upload of the album art using this framework about six months ago.

    The best thing about it is that you do not need to poll to pick up a song change. This means you could set up nginx compiled with NGiNX_HTTP_Push_Module to push the song that is playing to a webpage being shown on Safari on the iPod touch via JavaScript. This way you can push a JSON object containing the song's name, artist, etc. as well as the album art base64 encoded (shouldn't be too difficult to do as you get access to the raw image via Scripting Bridge) which is then decoded by JavaScript on the webpage when a song is pushed to it via nginx.

    Set the number of items in the nginx queue to 1 (you don't need a back history) then when you refresh the page it'll get the last event.

    Let me know if you want me to work on this and I'll see what I can do :)

    EDIT: I got bored and started building it anyway :p
     
  2. theandy94

    theandy94

    Joined:
    Nov 23, 2011
    Messages:
    257
    Mobo:
    H67MA-USB3-B3, Lenovo G580 (20157)
    CPU:
    i5-2400, i5-3230M
    Graphics:
    HD7870, Intel HD4000
    Aug 5, 2013 at 5:31 PM #92
    theandy94

    theandy94

    Joined:
    Nov 23, 2011
    Messages:
    257
    Mobo:
    H67MA-USB3-B3, Lenovo G580 (20157)
    CPU:
    i5-2400, i5-3230M
    Graphics:
    HD7870, Intel HD4000
    Cool idea.
    Hope it will work as expected, when it's finished.
     
  3. MacTester57

    MacTester57

    Joined:
    Dec 15, 2011
    Messages:
    907
    Mobo:
    Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
    CPU:
    i5-2500K, i3-3225, i7-3770S
    Graphics:
    HD 3000, HD 4000, HD 5000
    Classic Mac:
    iMac, Power Mac
    Mobile Phone:
    iOS
    Aug 5, 2013 at 6:04 PM #93
    MacTester57

    MacTester57

    Joined:
    Dec 15, 2011
    Messages:
    907
    Mobo:
    Z68MX-UD2H-B3, DQ77KB, NUC DC53427HYE, NUC D54250WYKH
    CPU:
    i5-2500K, i3-3225, i7-3770S
    Graphics:
    HD 3000, HD 4000, HD 5000
    Classic Mac:
    iMac, Power Mac
    Mobile Phone:
    iOS
    blackthund3r,

    Thank you for your effort! Please let me know, if your solution is ready for testing.

    Many thanks, I'm looking forward for the result.

    MacTester
     
  4. kiwisincebirth

    kiwisincebirth

    Joined:
    May 27, 2012
    Messages:
    777
    Mobo:
    GA-Z68MX / DQ77KB
    CPU:
    i7-2600 / i7-3770S
    Graphics:
    GTX 650 Ti / HD4000
    Mac:
    MacBook Air, MacBook Pro, Mac mini
    Mobile Phone:
    iOS
    Aug 5, 2013 at 7:01 PM #94
    kiwisincebirth

    kiwisincebirth

    Joined:
    May 27, 2012
    Messages:
    777
    Mobo:
    GA-Z68MX / DQ77KB
    CPU:
    i7-2600 / i7-3770S
    Graphics:
    GTX 650 Ti / HD4000
    Mac:
    MacBook Air, MacBook Pro, Mac mini
    Mobile Phone:
    iOS
    So I did a bit if googling of blackthund3r post, and after working out that scripting bridge is similar to apple script, I then found the below.

    It sets artwork as desktop background image, you could then use your remote control app to view the desktop. Advantage is you don't need a web server, and can control the computer at same same time. Disadvantage is menu bar and dock (can be hidden) are overlayed on the image

    http://dougscripts.com/itunes/scripts/ss.php?sp=arttodesktop
     
  5. blackthund3r

    blackthund3r

    Joined:
    Jun 1, 2011
    Messages:
    36
    Mobo:
    Gigabyte GA-Z77-DS3H Rev 1.0
    CPU:
    Intel Core i5 3570k @ 4.4GHz
    Graphics:
    MSI GeForce GTX 560 Ti Hawk
    Classic Mac:
    iBook
    Mobile Phone:
    Android, iOS
    Aug 5, 2013 at 8:29 PM #95
    blackthund3r

    blackthund3r

    Joined:
    Jun 1, 2011
    Messages:
    36
    Mobo:
    Gigabyte GA-Z77-DS3H Rev 1.0
    CPU:
    Intel Core i5 3570k @ 4.4GHz
    Graphics:
    MSI GeForce GTX 560 Ti Hawk
    Classic Mac:
    iBook
    Mobile Phone:
    Android, iOS
    It works :) I'm just cleaning the code up then I'll get some binaries and instructions up :)

    I haven't done any autostart scripts or frontend styling yet but the actual code appears to work :)

    EDIT: Try this: http://cl.ly/2U1C252R3n02

    It's SERIOUSLY hacky and needs a bit of manual set up for now but there's a sweet readme in there :) Have fun, and I hope it works!

    - - - Updated - - -

    That's a sweet idea :) There is, however, the problem of how large the artwork will be when viewed over VNC on the iPod. Still, it seems much *cleaner* than my solution!! :p
     
  6. nickjf20

    nickjf20

    Joined:
    Oct 24, 2011
    Messages:
    79
    Mobo:
    PowerMac i7
    CPU:
    i7-920
    Graphics:
    7950
    Mac:
    MacBook Pro
    Classic Mac:
    Power Mac
    Mobile Phone:
    Android
    Aug 8, 2013 at 9:23 PM #96
    nickjf20

    nickjf20

    Joined:
    Oct 24, 2011
    Messages:
    79
    Mobo:
    PowerMac i7
    CPU:
    i7-920
    Graphics:
    7950
    Mac:
    MacBook Pro
    Classic Mac:
    Power Mac
    Mobile Phone:
    Android
    Wow, this is beautiful, really good stuff!
     
  7. blackthund3r

    blackthund3r

    Joined:
    Jun 1, 2011
    Messages:
    36
    Mobo:
    Gigabyte GA-Z77-DS3H Rev 1.0
    CPU:
    Intel Core i5 3570k @ 4.4GHz
    Graphics:
    MSI GeForce GTX 560 Ti Hawk
    Classic Mac:
    iBook
    Mobile Phone:
    Android, iOS
    Aug 9, 2013 at 7:10 AM #97
    blackthund3r

    blackthund3r

    Joined:
    Jun 1, 2011
    Messages:
    36
    Mobo:
    Gigabyte GA-Z77-DS3H Rev 1.0
    CPU:
    Intel Core i5 3570k @ 4.4GHz
    Graphics:
    MSI GeForce GTX 560 Ti Hawk
    Classic Mac:
    iBook
    Mobile Phone:
    Android, iOS
    I'm going to second this. It's one of the reasons I wanted to contribute the artwork code; the hardware is absolutely beautifully finished! If that was >£80 on Amazon I wouldn't be surprised. It's a quality piece of engineering. Nice work MacTester!
     
  8. rick26

    rick26

    Joined:
    May 15, 2012
    Messages:
    390
    Mobo:
    Gigabyte GA-170X-UD3\ Define R5 Case\ HP 8200 Elite SFF
    CPU:
    Intel Core i7 6700K \ i5 2400
    Graphics:
    Evga Geforce GTX970 FTW \ MSI GT710
    Mac:
    MacBook Air
    Classic Mac:
    iMac, Power Mac
    Mobile Phone:
    iOS
    Aug 21, 2013 at 9:00 PM #98
    rick26

    rick26

    Joined:
    May 15, 2012
    Messages:
    390
    Mobo:
    Gigabyte GA-170X-UD3\ Define R5 Case\ HP 8200 Elite SFF
    CPU:
    Intel Core i7 6700K \ i5 2400
    Graphics:
    Evga Geforce GTX970 FTW \ MSI GT710
    Mac:
    MacBook Air
    Classic Mac:
    iMac, Power Mac
    Mobile Phone:
    iOS
    Mactester,

    Do you have a DSDT for HDMI audio? bios 51.


    Rick,
     
  9. kiwisincebirth

    kiwisincebirth

    Joined:
    May 27, 2012
    Messages:
    777
    Mobo:
    GA-Z68MX / DQ77KB
    CPU:
    i7-2600 / i7-3770S
    Graphics:
    GTX 650 Ti / HD4000
    Mac:
    MacBook Air, MacBook Pro, Mac mini
    Mobile Phone:
    iOS
    Aug 21, 2013 at 10:09 PM #99
    kiwisincebirth

    kiwisincebirth

    Joined:
    May 27, 2012
    Messages:
    777
    Mobo:
    GA-Z68MX / DQ77KB
    CPU:
    i7-2600 / i7-3770S
    Graphics:
    GTX 650 Ti / HD4000
    Mac:
    MacBook Air, MacBook Pro, Mac mini
    Mobile Phone:
    iOS
  10. rick26

    rick26

    Joined:
    May 15, 2012
    Messages:
    390
    Mobo:
    Gigabyte GA-170X-UD3\ Define R5 Case\ HP 8200 Elite SFF
    CPU:
    Intel Core i7 6700K \ i5 2400
    Graphics:
    Evga Geforce GTX970 FTW \ MSI GT710
    Mac:
    MacBook Air
    Classic Mac:
    iMac, Power Mac
    Mobile Phone:
    iOS
    Aug 21, 2013 at 11:14 PM #100
    rick26

    rick26

    Joined:
    May 15, 2012
    Messages:
    390
    Mobo:
    Gigabyte GA-170X-UD3\ Define R5 Case\ HP 8200 Elite SFF
    CPU:
    Intel Core i7 6700K \ i5 2400
    Graphics:
    Evga Geforce GTX970 FTW \ MSI GT710
    Mac:
    MacBook Air
    Classic Mac:
    iMac, Power Mac
    Mobile Phone:
    iOS
    Thanks Kiwi,

    But I run the capri patch but nothing happend..

    Rick,
     

Share This Page