![]() |
#181 | |
( ͡° ͜ʖ ͡°){ʇ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:
I call the current incarnation like ./Balsamic plughw 8k8bmono.wav 8000 but I think I added the argv[3] for alternate speed playback - extra testing options. I removed all error handling more or less - aside from the obvious alsa bits that were already hanging around. It may segfault when it gets to the end of the file. My current one does because I don't check for %WaveSize correctly (I'm monitoring the wave stream as video info) I've abandoned all attempts to sync vid pending your next revelation. My code is not hardy nor well programmed. But I've got the seggies down to expected ones my end. let me know approx where it segges and ill have a think - the strace of it should be utterly straightforward. : ) It's possibly the polling failing but I dont think so. as an aside I got a huge performance increase by simply Code:
void gmplay4(void) { while (1) { if (frameCount %2==0) { BLAH } else { usleep(5); // or 10 } ![]() Last edited by twobob; 07-14-2012 at 08:31 PM. Reason: tightened loop |
|
![]() |
![]() |
![]() |
#182 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
@twobob: didn't you just "celebrate your centenary post" like a day (or three) ago? I just noticed that your bicentenary just went past unheeded (until now). Congrats!
![]() And my trimillenary post is coming up pretty darned quickly too. ![]() Last edited by geekmaster; 07-14-2012 at 09:07 PM. |
![]() |
![]() |
![]() |
#183 | |
( ͡° ͜ʖ ͡°){ʇ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
|
SIGSEGV (0xb) at pc=0x00007f1b25ba6afb, pid=12551, tid=139754494949136
Quote:
# # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f1b25ba6afb, pid=12551, tid=139754494949136 # # JRE version: 6.0_24-b07 # Java VM: Java HotSpot(TM) 64-Bit Server VM (19.1-b02 mixed mode linux-amd64 compressed oops) # Problematic frame: # V [libjvm.so+0x691afb] # # An error report file with more information is saved as: # /home/simon/hs_err_pid12551.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # bash-4.1$ Just like that ![]() |
|
![]() |
![]() |
![]() |
#184 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
I seem to be losing track, I thought you made an additional install of 32bit Slackware.
No matter ... Since it is the Java interpreter that is segfaulting, I would try a different Java - - - Maybe try the 32bit build or maybe try the IBM build. (You can have them all installed at the same time.) I can't recall if I ever did run Eclipse with a 64bit Java myself. My notes from the last time I used Eclipse: http://minimodding.com/eclipse_tour |
![]() |
![]() |
![]() |
#185 | |
( ͡° ͜ʖ ͡°){ʇ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:
|
|
![]() |
![]() |
![]() |
#186 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
The 32bit java will run on your 64bit machine just fine.
= = = My local time, plus xxx time zones == time to take a break. |
![]() |
![]() |
![]() |
#187 |
( ͡° ͜ʖ ͡°){ʇ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
|
|
![]() |
![]() |
![]() |
#188 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
I was able to adjust sound output on my K5 with amixer, and with alsamixer (text GUI) commands (built-in). It is a bit louder, but still rather quiet when doing:
cat 8k8bmono.wav|aplay It is much too quiet with headphones, even with all volume controls set to max using those tools. On the K5, alsamixer is full color on SSH, but on the K3 it is only monochrome. Hmm... after playing with K3 alsamixer and increasing several headphone and speaker volumes, now I do not get any sound output. ![]() UPDATE: Rebooting the K3 made the sound work again. ![]() Last edited by geekmaster; 07-15-2012 at 11:18 AM. |
![]() |
![]() |
![]() |
#189 |
( ͡° ͜ʖ ͡°){ʇ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
|
alsamixer is evil. avoid him
There are direct call IIRC Ill have a look when i get back |
![]() |
![]() |
![]() |
#190 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#191 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
|
![]() |
![]() |
![]() |
#192 | |
( ͡° ͜ʖ ͡°){ʇ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:
I would advise strongly against ever using (it in it's current state, which seems fairly stable at "poor"). There are better ways, I did include Alsamixer in my tips - but I also prefaced with - "If it's anything like my one it will be rubbish". YMMV but it won't be high. Spoiler:
http://www.alsa-project.org/alsa-doc...ple_mixer.html Fails becase there is no "mixer" component declared by the alsa Spoiler:
Fails for the same reason. I suspect we need to do the alsactl setup satisfactorily before the programmatic side will work. One for my pile perhaps once I have this fft thingy happening. Apologies that it is crappy, I can confirm it tried to mute the sound on mine too, fortunately I knew to go thru the settings one by one to reset them to play - while another shell played music, until I found the culprit, which on this occasion looked to be the actual master volume ![]() definitely a flaky app, that will be best bypassed in the medium term via the code I have posted above. Last edited by twobob; 07-15-2012 at 02:24 PM. Reason: sense and sensibility |
|
![]() |
![]() |
![]() |
#193 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
I just posted static builds of xz (and lzma) utils -
slower than gzip, but will squeeze the life out of a .wav file if you need that. ![]() |
![]() |
![]() |
![]() |
#194 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
I built xz for x86 and for arm. On the K3 it complains about missing glibc 2.6 (even when I static link it). I compressed 8kb8mono.wav on x86 using it. For that wave file, it compressed about 10% more than gzip but about 10% LESS than bzip2.
It's claim to fame seems to be for compressing linux log files. |
![]() |
![]() |
![]() |
#195 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Also, I include the build notes so that other people can do the same now, or with a different version in the future. Click the attachments icon on the DIY-KeK title line. |
|
![]() |
![]() |
![]() |
Tags |
stupid root mistakes |
|