Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-12-2012, 10:56 PM   #166
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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:
Originally Posted by geekmaster View Post
This is worth a quick read too: http://www.suse.de/~mana/alsa090_howto.html
HAHAHAH.

I opened the page.

And all the links are purple

Thanks but I have spent the last however many days consuming everything I could find on the subject. If not fully absorbed at least browsed. I have 3 several hundred page books on the subject and the latest DSP time-domain jiggery pokery reference manual I could buy on the way.

I am good for docs

Last edited by twobob; 07-12-2012 at 10:57 PM. Reason: added italics for coolness
twobob is offline   Reply With Quote
Old 07-13-2012, 12:29 AM   #167
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Arrow geekmaster's sound demo thread

Check out "geekmaster's sound demo thread", where I will attempt to recreate my lost "hypnotic and mesmerizing" sound experiments from 1974:


But first, I present a tiny little (geekmaster style) "noisy rhythms" demo, which you can use to annoy your friends and family (or lay down a melody track on top of it).

Last edited by geekmaster; 07-13-2012 at 01:03 AM.
geekmaster is offline   Reply With Quote
Advert
Old 07-13-2012, 07:21 AM   #168
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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:
Originally Posted by geekmaster View Post
Check out "geekmaster's sound demo thread", where I will attempt to recreate my lost "hypnotic and mesmerizing" sound experiments from 1974:


But first, I present a tiny little (geekmaster style) "noisy rhythms" demo, which you can use to annoy your friends and family (or lay down a melody track on top of it).
Excellent. I added a thought about inserting simple implicit musicality. (as is my wont)
Loved the snappy init. MUST GET MY ALSA LIB TO X_COMPILE GAH!

EDIT: Got it to X-compile. That should be okay now for building stuff for the 5.
I used your exact settings.

Find out soon enough I imagine. Thanks again.

FURTHER EDIT: That's one off the TODO list and should re-enable access to the plughw device again. happy days

Last edited by twobob; 07-13-2012 at 11:11 AM. Reason: Added that I got the x-compile to work
twobob is offline   Reply With Quote
Old 07-13-2012, 07:11 PM   #169
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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
Terrifying latency. Something must be up. There's a big LOUD surge, then it remembers to turn down, that's a bit odd also...

Something must be up. Even at it's maximum period size of 4096 it's struggling to initialise Full duplex in one swallow. I suspect this may be the kernel glitch I was spouting about. would love to pull some decent errors from somewhere.

All stracing gives me is:

ioctl(5, SNDRV_PCM_IOCTL_READI_FRAMES, 0xbe9559b0) = -1 EAGAIN (Resource temporarily unavailable)
repeated a lot... Then:
octl(5, SNDRV_PCM_IOCTL_READI_FRAMES, 0xbe9559b0) = -1 EPIPE (Broken pipe)

Which is pretty much what I observed before when trying to full duplex the card.

Something must be up. Did I say that already?

Meh. Ill abandon full duplex for the day in favour of tea and twiddling freqs toward the GM++ Viddy viewer. much more fun.
twobob is offline   Reply With Quote
Old 07-13-2012, 07:22 PM   #170
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by twobob View Post
Terrifying latency. Something must be up. There's a big LOUD surge, then it remembers to turn down, that's a bit odd also...

Something must be up. Even at it's maximum period size of 4096 it's struggling to initialise Full duplex in one swallow. I suspect this may be the kernel glitch I was spouting about. would love to pull some decent errors from somewhere.

All stracing gives me is:

ioctl(5, SNDRV_PCM_IOCTL_READI_FRAMES, 0xbe9559b0) = -1 EAGAIN (Resource temporarily unavailable)
repeated a lot... Then:
octl(5, SNDRV_PCM_IOCTL_READI_FRAMES, 0xbe9559b0) = -1 EPIPE (Broken pipe)

Which is pretty much what I observed before when trying to full duplex the card.

Something must be up. Did I say that already?

Meh. Ill abandon full duplex for the day in favour of tea and twiddling freqs toward the GM++ Viddy viewer. much more fun.
I guess you will need to stick with half-duplex audio, and use a PTT (Push To Talk) button for your kindle VOIP calling.

And I am leaning to a choice of CELT or Speex for gmvid (to be chosen when encoding). Speex would be great for the MIT lecture series. Perhaps we could dynamically switch between them so the intro music before and after lectures would not sound horrible. And the code is public domain. And Speex can encode down to 2kbps bitrate.

Or to be low overhead we could use raw ADPCM interleaved with dithered video, and let an outer compression loop (or external compressor like gzip) handle it.

Ideas? Building libav just for a little player proggie like gmplay seems like overkill. I think better to use that only in the ENCODER (i.e. continue to use ffmpeg|raw2gmv|gzip for encoding on a host PC).

Last edited by geekmaster; 07-13-2012 at 07:32 PM.
geekmaster is offline   Reply With Quote
Advert
Old 07-13-2012, 08:49 PM   #171
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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
To be honest I would like to confirm that audio and video can indeed co-exist in the state of wav and video - I have tests that have jerky video and lovely waves, I have tests that have jerky waves and lovely video.

I am convinced I can get the full duplex going, it's just going to be a horrible experience for the user for the first few seconds I think while we fudge it to life.

As for the codec, I did look at the Riff structures and also some codecs ideas but frankly both of your ideas ace thoughts so far.

I would like an idea on what I'm going to eventually interlace and my only concern is the overhead - which I have to imagine will be piffling - and hopefully insignificant. But that is what currently concerns me. Can it happen on a 3? Lol. simple concerns for my simple mind
twobob is offline   Reply With Quote
Old 07-13-2012, 09:43 PM   #172
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
I am thinking raw video and raw audio piped straight out of ffmpeg using the params I posted in the forum. Then interleave them (perhaps with a 1.5 second pre-roll on the audio so it does not glitch when the video falls one second behind and starts to framedrop now and then.

I have no problem with pitch shifting and speed changing audio using a 3-phase ring buffer in software. Did that stuff on an old sound card that had a programmable DSP in it back in the win3.x days. Made some cool voice modification demos back then. Happy days. The point is, we can dynamically change sound to match the video, or vice versa.

Regarding what a K3 can do, we may need interrupts (or lpthreads) so we can do stuff while it is sitting in the eink syscalls...

Last edited by geekmaster; 07-14-2012 at 02:28 PM.
geekmaster is offline   Reply With Quote
Old 07-14-2012, 01:41 PM   #173
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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
Working on the sound visualiser right now
twobob is offline   Reply With Quote
Old 07-14-2012, 02:28 PM   #174
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by twobob View Post
Working on the sound visualiser right now
If you add the ability to dynamically configure sound parameters while you visualize their effects on the sound visualizer, it should obviously be named the "sonic screwdriver", right?

P.S. American English uses "z" in a lot of words where you "foreigners" stick "s". Over here, if it SOUNDS like a "z" then it is SPELLED with a "z" (usually).

Last edited by geekmaster; 07-14-2012 at 02:35 PM.
geekmaster is offline   Reply With Quote
Old 07-14-2012, 02:49 PM   #175
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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
you can be in charge of naming things

Quote:
Originally Posted by geekmaster View Post
If you add the ability to dynamically configure sound parameters while you visualize their effects on the sound visualizer, it should obviously be named the "sonic screwdriver", right?

P.S. American English uses "z" in a lot of words where you "foreigners" stick "s". Over here, if it SOUNDS like a "z" then it is SPELLED with a "z" (usually).
My grandpa was canadian, dad american. brothers in Oz.

I can confirm knowledge of this.

You say potato, I say potato
You say Tomato, I say Tomato.

note the lack of difference in those two statements and yet you processed them in a special way because of their provenance as a couplet pair.

I will presume that most readers with just automunge my regional variations into their language and have done with it.

After a lifetime of hard northern boys taking the piss out of me for mistakenly saying "Trash" or "Store" when I meant "rubbish" or "shop" I say stick the separatists and hang the tower of babel.

I thank you

Last edited by twobob; 07-14-2012 at 05:38 PM. Reason: is me not my
twobob is offline   Reply With Quote
Old 07-14-2012, 06:01 PM   #176
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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:
Originally Posted by geekmaster View Post
the "sonic screwdriver", right?
Sounds good to me...

pun intended
twobob is offline   Reply With Quote
Old 07-14-2012, 06:16 PM   #177
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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
Eclipse is crashing about 7 times a day. its getting annoying.
twobob is offline   Reply With Quote
Old 07-14-2012, 06:29 PM   #178
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by twobob View Post
Eclipse is crashing about 7 times a day. its getting annoying.
Strange, I haven't heard of that happening before.
Hmm...
What Java is it being run with?
Many distro's install the gnu versions of Java by default, you may have to manually install the for-real Oracle Tech. version of Java.
http://www.oracle.com/technetwork/java/index.html

- - -
PS: If you find a solution, please post what you did to fix it.
knc1 is offline   Reply With Quote
Old 07-14-2012, 06:57 PM   #179
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
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:
Originally Posted by knc1 View Post
Strange, I haven't heard of that happening before.
Hmm...
What Java is it being run with?
Many distro's install the gnu versions of Java by default, you may have to manually install the for-real Oracle Tech. version of Java.
http://www.oracle.com/technetwork/java/index.html

- - -
PS: If you find a solution, please post what you did to fix it.
will do - it's the latest JDK 64 and JRE. I'll run it in a shell and see what I get as output.

It's still better than kdeveop. at least it x-compiles.

Last edited by twobob; 07-14-2012 at 06:58 PM. Reason: added boldness. blummin 64 bit breaks everything. roll on next century
twobob is offline   Reply With Quote
Old 07-14-2012, 07:32 PM   #180
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
One thing about tiny little code with no error messages is that you get to rely on the general all-purpose error message called "segfault".

And then there are those darned built-in libraries that spoil the party by injecting their own error messages before aborting.

Of course, in "real" code (especially all the motion-control / robotics / factory automation stuff I did over the years), you need to recover gracefully from just about anything that can happen, logging it silently while not annoying the machine operator, and self-calibrating WHILE in operation. You cannot shut down operations just because the machine is failing, if your software can compensate for the progressive failure. But you also cannot just hit the reset button to restart after a large part of your machine goes through a brick wall and out into the parking lot because of a software glitch.

Now, the reason I brought this up, is that I am getting segfaults with your latest code. PEBKAC errors no doubt.

Last edited by geekmaster; 07-14-2012 at 07:42 PM.
geekmaster is offline   Reply With Quote
Reply

Tags
stupid root mistakes


Forum Jump


All times are GMT -4. The time now is 11:38 AM.


MobileRead.com is a privately owned, operated and funded community.