12-22-2012, 08:31 AM | #136 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
okay so... to get this working on as many devices as we can:
The gui is the issue. since on the 3 the level of separation of the kindlet from the python layer makes handling updated files require some home-brewed methods of file watching. It's also tricky to test locally. As the gui won't "run" on a pc, without wrapping it in something (the snake game amongst others does actually have examples of this) so - to recap - I don't want to do it as a kindlet. I will repurpose this code to be a launcher for the Gnuboy games on the 3 perhaps. So what do we use? And how do we get around the separation from python. One thought would be to implement a pure c interface to the soundcloud API. as it happens someone did this a few years back - hopefully the code isn't too rotten. It was... Spoiler:
Just thought I should share the the project isn't entirely stalled. just in a holding pattern while we get the ui sorted. Last edited by twobob; 12-24-2012 at 06:08 AM. |
12-22-2012, 09:52 AM | #137 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
and to test it locally
~/k3-dev $ CFLAGS="-fno-stack-protector -O2 -fno-finite-math-only -ffast-math -pipe" gcc test.c -o test `pkg-config gtk+-2.0 --cflags --libs`-I./usr/include -I./usr/include/directfb works fine now |
Advert | |
|
12-22-2012, 03:21 PM | #138 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Last edited by twobob; 12-24-2012 at 06:07 AM. |
12-24-2012, 12:32 AM | #139 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
doh.
another few hours burned on silliness. https://github.com/soundcloud/soundc...thon/issues/17 ah well. back to testing on the Touch then now it works too Assuming we are still going to use mplayer we should probably look at: http://www.mplayerhq.hu/DOCS/tech/slave.txt which means we probably want to pump a fifo? maybe? http://developer.gnome.org/glib/stab...-Channels.html someone else was doing this IIRC. feel free to chip with some tips about controlling mplayer remotely. I have the gtk main loop running (needs extending with events), I have forked data, I have mplayer, just need a bit of time... Here was an interesting thing I found: "GtkWorker (Python recipe)" http://code.activestate.com/recipes/521881/ Notes on fixing the menus popping up in a new window each time http://stackoverflow.com/questions/1...gnal-is-emitte Last edited by twobob; 01-04-2013 at 06:25 PM. Reason: clarity |
12-24-2012, 06:52 PM | #140 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
above display was of http://git.gnome.org/browse/gtk+/tree/demos/gtk-demo
(ref: http://www.gtk.org/api/2.6/gtk/gtk-General.html and http://developer.gnome.org/gtk-tutorial/stable/) to actually invoke the individual demos one would http://stackoverflow.com/questions/2...-run-gtk-demos another interesting snippet of code for another project. Calling https://trac.webkit.org/browser#releases/WebKitGTK (http://webkitgtk.org/?page=download) Spoiler:
Last edited by twobob; 12-26-2012 at 06:45 PM. |
Advert | |
|
12-24-2012, 08:16 PM | #141 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Why the menus look horrible...
Why the menus look horrible...
Spoiler:
Code to start splatting stuff back into gtk into helpful pieces... Spoiler:
Thoughts on delimiters. and why we have chosen ¬ Spoiler:
Okay long story short - I got it all working again. but this time with no stupid lag or asynchrous menuing (well, so far) attached final pic of working playback menu. next up.. searching. Last edited by twobob; 01-06-2013 at 10:25 PM. |
12-27-2012, 01:19 AM | #142 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
heh. a search box. and mainly working playback.
progress... thanks qlob for chatting over the options with me. helpful. |
12-27-2012, 01:47 AM | #143 |
Wizard
Posts: 1,738
Karma: 12435772
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro
|
|
12-27-2012, 10:22 AM | #144 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Okay. We were talking about this just last night.
OTG USB, tiny usb soundcard affixed to casing. tidiest form factor was the consideration. Geekmaster had some good ideas on that. When something rears it's ugly head (like a PW on my desk) perhaps this will get visited. Last edited by twobob; 12-27-2012 at 05:28 PM. |
12-27-2012, 01:41 PM | #145 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
I own a Kpw -
I own two of the OTG-Host adapters which Amazon lists for the K4 and K5 - Might also work on a Kpw - Don't know - way down on my list of things to check-out. Anyone that can beat me to that information - go for it! |
12-28-2012, 03:01 AM | #146 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
some progress.
still getting used to chucking the widgets around in events. needed some refactoring but in the main moving along. nice to test locally. |
12-28-2012, 04:25 AM | #147 |
Wizard
Posts: 1,738
Karma: 12435772
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro
|
|
12-28-2012, 08:04 AM | #148 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Why not take a tip from Amazon's Current Recommendations (which defaults to on) - - Ship your first release with the default setting to list the music of artist twobob? |
|
12-28-2012, 11:15 AM | #149 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
Whilst it is indeed audio nerfed honestly think it could work on the PW. Figured you were just joshing with us. No qualms. "free time": hmmm... Spoiler:
|
|
12-28-2012, 08:43 PM | #150 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
more progress.
Tabbed search and results page to get around horrible widget destruction issues. meh I hate it when pointers go out of scope. Anyways.... Issues fixed: Huge load lag. This (soundcloud-based) delay has been shifted more properly to the search method. Results not being displayed properly. (no more stupid duplicates) Currently Needs addressing: Can only search on artist. (but the python is nice and separate and can be very easily extended, there is provision for multiple-named scripts also) Some results oddly wont play and return a 403... could be duff filters. will test on the PC. moving along slowly though Oh yeah and we also need to get http://www.gtk.org/api/2.6/gdk/gdk-Input-Devices.html working for the 3... Artists featured so far: Spoiler:
Last edited by twobob; 12-29-2012 at 01:36 AM. |
Thread Tools | Search this Thread |
|