Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-05-2013, 12:20 AM   #1
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,552
Karma: 6021146
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
Post alsaplayer 0.99.80 (K5 KUAL-V.1.1)

UPSTREAM: http://alsaplayer.sourceforge.net/

It plays music files.

DOES THIS SHOW UP IN THE KUAL MENU?
Yep. as alsaplayer


[root@kindle root]# /mnt/us/extensions/alsaplayer/bin/alsaplayer --help
Spoiler:
Code:
Usage: alsaplayer [options] [filename <filename> ...]

Available options:

  -c,--config file        use given config file for this session
  -h,--help               print this help message
  -i,--interface iface    use specific interface [default=gtk2]. choices:
                          [ gtk2 | text | daemon | xosd ]
  -I,--script file        script to pass to interface plugin
  -n,--session n          use this session id [default=0]
  -l,--startvolume vol    start with this volume [default=1.0]
  -p,--path path          set the path alsaplayer looks for add-ons
  -q,--quiet              quiet operation. less output
  -s,--session-name name  name this session "name"
  -v,--version            print version of this program
  --verbose               be verbose about the output
  --nosave                do not save playlist content at exit

Player control (use -n to select a session other than the default):

  -e,--enqueue file(s)  queue files in running alsaplayer
  -E,--replace file(s)  clears and queues files in running alsaplayer
  --status              get some information about session
  --volume vol          set software volume [0.0-1.0]
  --start               start playing
  --stop                stop playing
  --pause               pause/unpause playing
  --prev                jump to previous track
  --next                jump to next track
  --seek second         jump to specified second in current track
  --relative second     jump second seconds from current position
  --speed speed         floating point speed parameter
    1.0 = normal speed, -1.0 normal speed backwards
  --jump track          jump to specified playlist track
  --clear               clear whole playlist
  --quit                quit session

Sound driver options:

  -d,--device string    select specific device in output plugin
    for the ALSA plugin: [default="default"]
    for the JACK plugin: [default="alsa_pcm:playback_1,alsa_pcm:playback_2"]
  -f,--fragsize n       fragment size in bytes [default=4096]
  -F,--frequency n      output frequency in Hz [default=44100]
  -g,--fragcount n      fragment count [default=8]
  -r,--realtime         enable realtime scheduling (with proper rights)
  -o,--output output    use specific output driver [default=alsa]. choices:
                        [ alsa | oss | nas | null ]

Experimental options:

  -S,--loopsong         loop file
  -P,--looplist         loop playlist
  -x,--crossfade        crossfade playlist entries



HOW DO I EXIT???

Look at the pictures below. I stuck it on a menu that is launched from a button with a GEARS ICON on...

What is the difference between ADD+ and OPEN
Add+ Adds files to the current playlist
OPEN Opens a playlist (.m3u) file.

Don't get it wrong... as opening a music file by mistake in the OPEN PLAYLIST dialog hangs the app... - FIXED in V1.1

Are there any demo tunes?
Yup, a procedurally generated one via csound, a gentle remix of Cyra morgan (by twobob) and a chopin piece by Brad Hill. and Dance Cleopatra from this album by ZamalSka

DOES THIS WORK ON A PAPERWHITE???
Err. No. Amazon has neutered all devices later than the Kindle 5 as far as sound is concerned.

How do I get up the menu thing at the bottom?
Look at the 4th picture I posted. It's that button.


GOT ANY MORE FREE TUNES FOR ME TWOBOB?
well since you ask:
FILL YOUR BOOTS (558MB - 52 free tunes)

And I shoved two bonus tracks in a zip for ya too...
(One of which is used to demo out radio equipment world-wide)


Version 1.1 fixes all known bugs. (and adds jack backend support FWIW)

Enjoy.
Attached Thumbnails
Click image for larger version

Name:	screenshot_2013_10_05T02_55_00+0000.png
Views:	106
Size:	13.1 KB
ID:	112818   Click image for larger version

Name:	screenshot_2013_10_05T02_56_37+0000.png
Views:	108
Size:	26.3 KB
ID:	112819   Click image for larger version

Name:	screenshot_2013_10_05T02_57_17+0000.png
Views:	97
Size:	14.7 KB
ID:	112820   Click image for larger version

Name:	screenshot_2013_10_05T03_21_33+0000.png
Views:	93
Size:	13.3 KB
ID:	112823   Click image for larger version

Name:	screenshot_2013_10_05T22_23_26+0000.png
Views:	70
Size:	21.5 KB
ID:	112866   Click image for larger version

Name:	screenshot_2013_10_05T22_55_25+0000.png
Views:	64
Size:	35.0 KB
ID:	112871   Click image for larger version

Name:	screenshot_2013_10_05T22_56_18+0000.png
Views:	60
Size:	10.8 KB
ID:	112872  
Attached Files
File Type: zip Bonus-Tracks.zip (18.24 MB, 30 views)
File Type: zip alsaplayer-K5-KUAL-V.1.1.zip (12.44 MB, 41 views)

Last edited by twobob; 10-08-2013 at 07:07 PM. Reason: Version 1.1 bugfix release
twobob is offline   Reply With Quote
Old 10-05-2013, 12:58 AM   #2
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,552
Karma: 6021146
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
Reserved.


EDIT: noted 1st bug...

Code:
./interface/gtk2/PlaylistWindow.cpp:	filechooser = gtk_file_chooser_dialog_new(_("L:D_N:dialog_ID:Choose.file.or.URL_M:true_RBK:true"), main_window, GTK_FILE_CHOOSER_ACTION_OPEN,
That should be RKB... ah well. Have to wait till tomorrow. Actual impact is ZERO.

FIXED IN V1.1

Last edited by twobob; 10-05-2013 at 07:42 PM. Reason: FIXED in V 1.1
twobob is offline   Reply With Quote
Old 10-05-2013, 06:35 AM   #3
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 404
Karma: 1287365
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
Awesome. Yet again. You 'da man. Thanks!
brianinmaine is offline   Reply With Quote
Old 10-05-2013, 06:39 AM   #4
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,552
Karma: 6021146
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
Looking into the NAS support. (which IIRC I built in)
http://www.ibiblio.org/pub/Linux/app.../nas-1.2p5.lsm

perhaps this could push audio on a Paperwhite across the network to an audio enabled computer... Meh. why not.

http://packages.debian.org/sid/alsaplayer-nas

Last edited by twobob; 10-05-2013 at 06:43 AM.
twobob is offline   Reply With Quote
Old 10-05-2013, 06:42 AM   #5
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 404
Karma: 1287365
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
Seems to me if you have a pc waiting for a stream, you might as well just play it locally on the pc. not worth too much effort IMO.
brianinmaine is offline   Reply With Quote
Old 10-05-2013, 06:43 AM   #6
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,552
Karma: 6021146
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
Because... you can do it sat far away...

and "you can" :P

(here is a nice guide to many things audio that I actually already know inside and out but meh)
http://www.mega-nerd.com/Res/IADSPL/page01.html

Last edited by twobob; 10-05-2013 at 06:47 AM.
twobob is offline   Reply With Quote
Old 10-05-2013, 06:48 AM   #7
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 404
Karma: 1287365
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
Quote:
Originally Posted by twobob View Post
"you can" :P
Good enough!
brianinmaine is offline   Reply With Quote
Old 10-05-2013, 07:03 AM   #8
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,552
Karma: 6021146
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
I did just briefly check how close 0.99.81 IS to 0.99.80... Answer... quite far.

So if someone fancied updating this to the code from: https://github.com/alsaplayer/alsaplayer rather than the debian source I used, that ould be a manual process as the files have quite a few differences in them (too much for patch)

Word to the wise.
twobob is offline   Reply With Quote
Old 10-05-2013, 07:08 AM   #9
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 404
Karma: 1287365
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
Sounds like am assignment for someone, cough cough. I have some family things coming right up, we'll see.
brianinmaine is offline   Reply With Quote
Old 10-05-2013, 07:45 AM   #10
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,552
Karma: 6021146
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
no pressure.

I'm fiddling with nas

http://sourcecodebrowser.com/alsapla...76/nas_8c.html

Quote:
me@dev /usr/local/src $ sudo apt-get install nas
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
audiooss
The following NEW packages will be installed
nas
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
Need to get 80.5 kB of archives.
After this operation, 264 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/universe nas i386 1.9.3-4ubuntu0.1 [80.5 kB]
Fetched 80.5 kB in 0s (373 kB/s)
Preconfiguring packages ...
Selecting previously unselected package nas.
(Reading database ... 457609 files and directories currently installed.)
Unpacking nas (from .../nas_1.9.3-4ubuntu0.1_i386.deb) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db ...
Setting up nas (1.9.3-4ubuntu0.1) ...
Starting the Network Audio System
Network Audio System Release 1.9.3
Quote:
me@dev /usr/local/src $ nasd --help
Usage: nasd [:<listen port offset>] [option]
-aa allow any client to connect
-local allow local clients only
-b detach and run in background
-v enable verbose messages
-d <num> enable debug messages at level <num>
-config <file> use <file> as the nasd config file
-V print version and exit (ignores other opts)
-pn partial networking enabled
-nopn partial networking disabled [default]

No Server specific options supported.
Quote:
me@dev /usr/local/src $ nasd -aa -v
Network Audio System Release 1.9.3
Network Audio System Release 1.9.3
Error binding unix socket: /var/run/nasd/audio0
: Address already in use

Fatal server error:
Cannot establish unix listening socket
DOH !

will dig more...
twobob is offline   Reply With Quote
Old 10-05-2013, 07:48 AM   #11
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,552
Karma: 6021146
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
http://manpages.ubuntu.com/manpages/...nasd.1nas.html

http://manpages.ubuntu.com/manpages/...conf.5nas.html
twobob is offline   Reply With Quote
Old 10-05-2013, 07:54 AM   #12
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 404
Karma: 1287365
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
Not much info??

About 3/4 down the page
http://home.icequake.net/~nemesis/bl...hp/archives/95

not much web info at all!
brianinmaine is offline   Reply With Quote
Old 10-05-2013, 08:40 AM   #13
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,552
Karma: 6021146
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
Finally. After like a 100 searches I found a page..
http://radscan.com/nas.html

and a pitiful support list
http://sourceforge.net/p/nas/discussion/705744/

a woefully underpopulated wiki
http://sourceforge.net/apps/mediawik...itle=NAS_Links

and a very hard to parse mailing list
http://radscan.com/pipermail/nas/
what joy.

will dig

Last edited by twobob; 10-05-2013 at 08:59 AM.
twobob is offline   Reply With Quote
Old 10-05-2013, 10:12 AM   #14
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,552
Karma: 6021146
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 for the next poor soul:

me@dev /usr/local/src $ nasd -aa &

Quote:
Network Audio System Release 1.9.3
Error binding unix socket: /var/run/nasd/audio0
: Address already in use

Fatal server error:
Cannot establish unix listening socket
if we STRACE that we note that the ordinary user account DOES NOT HAVE PERMS to create the socket..

run it as sudo

(To kill it you will have to sudo killall -9 nasd, from another term, sigh)

also we have to check the devices

Quote:
The alsa drivers have native sound-devices in the /dev/snd/ directory. If you have one card you might see the following devices:

/dev/snd/pcmC0D0 - the raw audio device for the card
/dev/snd/mixerC0D0 - the mixer for card 0
/dev/snd/controlC0D0 - the control device for card 0
The first number means the number of the soundcard, the second number (if any) is the number of the device. A sound card with two PCM devices would have a pcmC0D0 and pcmC0D1 device. Please note: the ALSA devices have changed between the previous version. Older ALSA drivers use /dev/snd/pcm00 (first number is the card, second number is the device).
so:
(REF: http://www.tldp.org/HOWTO/Alsa-sound-6.html)
me@dev $ ls /dev/snd/
by-id by-path controlC1 pcmC1D0c pcmC1D0p seq timer

c = capture
p = playback (I finally figured out)


I tweaked the config to give us some debug

EDIT: noted in docs you can put "" in mixer section - this is honoured despite only being documented as for voxware... That gets rid of the mixer errors:

me@dev $ sudo nasd -aa -config ./nasd.conf
Quote:
config: Maxfrags set to 3
config: Minfrags set to 2
config: Fragsize set to 256
config: Maxfrags set to 3
config: Minfrags set to 2
config: Fragsize set to 256
Network Audio System Release 1.9.3
Network Audio System Release 1.9.3
AuInitPhysicalDevices();
Init: will close device when finished with stream.
Init: will keep mixer device open.
Init: Leaving the mixer device options alone at startup.
Init: openDevice OUT /dev/snd/pcmC1D0p mode 1
Init: openDevice(1) IN /dev/snd/pcmC1D0c mode 0
setupSoundcard(...);
++ Setting up Output device (/dev/snd/pcmC1D0p)
+++ requesting wordsize of 16, got 8
+++ requesting 2 channel(s), got 1 channel(s)
+++ Requesting minimum sample rate of 5000, got 5000
+++ Requesting maximum sample rate of 44100, got 44100
setupSoundcard(...);
++ Setting up Input device (/dev/snd/pcmC1D0c)
+++ requesting wordsize of 8, got 8
+++ requesting 2 channel(s), got 1 channel(s)
+++ Requesting minimum sample rate of 4000, got 4000
+++ Requesting maximum sample rate of 44100, got 44100
initMixer: no output mixer device specified
initMixer: no input mixer device specified
Init: initMixer was successful
createServerComponents(...);
closeDevice: out
closeDevice OUT /dev/snd/pcmC1D0p mode 1
closeDevice: in
closeDevice IN /dev/snd/pcmC1D0c mode 0
closeDevice: mixer
closeDevice: leaving mixer device(s) open

hmmm... dodgy.

hmm. a bit better.



next up we maybe? need to open up our X tcp sockets ( no listen tcp is a standard these days)
me@dev /usr/local/src $ socat TCP-LISTEN:8000 UNIX-CONNECT:/tmp/.X11-unix/X0

and nerf our access control
me@dev /usr/local/src $ xhost +
Quote:
access control disabled, clients can connect from any host
(REF: http://osr507doc.sco.com/en/GECG/X_D...essByHost.html)
(REF2: http://smorgasbord.gavagai.nl/2010/0...cket-over-tcp/)


(REF: http://mplayerhq.hu/pipermail/mplaye...er/037748.html)

Let's try running nmap on the kindle...

[root@kindle bin]# LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./nmap 192.168.1.69
Quote:
Starting Nmap 6.00 ( http://nmap.org ) at 2013-10-05 13:06 UTC
Nmap scan report for dev (192.168.1.69)
Cannot find nmap-mac-prefixes: Ethernet vendor correlation will not be performed
Host is up (0.024s latency).
rDNS record for 192.168.1.69: dev.home
Not shown: 1060 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open www
111/tcp open sunrpc
139/tcp open netbios-ssn
445/tcp open unknown
2049/tcp open nfsd
MAC Address: 00:02:72:3C:60:47 (Unknown)
Nmap done: 1 IP address (1 host up) scanned in 4.42 seconds

humph STILL no port 8000...


on the kindle:

[root@kindle root]# AUDIOSERVER=192.168.1.69:0 /mnt/us/extensions/alsaplayer/alsaplayer -o nas
Quote:
audiolib: warning, client is protocol rev 2.2 server is 11.0!
audiolib: connection to "tcp/192.168.1.69:8000" refused by server
audiolib: Protocol version mismatch
NAS server not available
Failed to initialize plugin!
Failed to register plugin: /mnt/us/extensions/alsaplayer/lib/alsaplayer/output/libnas_out.so
Failed to load output plugin "nas". Trying defaults.
but at least that is one step closer...


working on it...


EDIT:

okay so let's run

me@dev /usr/local/src $ auinfo
Quote:
Audio Server: tcp/localhost:8000
Version Number: 2.2
Vendor: Network Audio System Release 1.9.3 - VoxWare
Vendor Release: 1
Min Sample Rate: 5000
Max Sample Rate: 44100
Max Tracks: 32
Number of Formats: 7
Formats: ULAW8 LinearUnsigned8 LinearSigned8
LinearSigned16MSB LinearUnsigned16MSB
LinearSigned16LSB LinearUnsigned16LSB
Number of Elem Types: 12
Element Types: ImportClient ImportDevice ImportBucket
ImportWaveForm Bundle MultiplyConstant AddConstant
Sum ExportClient ExportDevice ExportBucket
ExportMonitor
Number of Wave Forms: 2
Wave Forms: Square Sine
Number of Actions: 3
Actions: ChangeState SendNotify Noop
Number of Devices: 3
Device 0:
Changable: Gain LineMode
ID: 0x23
Kind: PhysicalInput
Use: Import
Format: LinearUnsigned8
Num Tracks: 1
Access: Import List
Description: "Mono Channel Input"
Min Rate: 5000
Max Rate: 44100
Location: Left Right External
Gain Percent: 50
Num Children: 0
Device 1:
Changable: Gain
ID: 0x22
Kind: PhysicalOutput
Use: Export
Format: LinearUnsigned8
Num Tracks: 2
Access: Export List
Description: "Stereo Channel Output"
Min Rate: 5000
Max Rate: 44100
Location: Center Internal
Gain Percent: 50
Num Children: 1
Children: 0x21
Device 2:
Changable: Gain
ID: 0x21
Kind: PhysicalOutput
Use: Export
Format: LinearUnsigned8
Num Tracks: 1
Access: Export List
Description: "Mono Channel Output"
Min Rate: 5000
Max Rate: 44100
Location: Center Internal
Gain Percent: 50
Num Children: 0
Number of Buckets: 0
bonus. That is working at least now.

Last edited by twobob; 10-05-2013 at 11:05 AM.
twobob is offline   Reply With Quote
Old 10-05-2013, 11:21 AM   #15
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,552
Karma: 6021146
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
Wel.. I did finally get it (NAS) to AT LEAST run locally.

Now when I say "run" I mean startup, show the port, run clients - but make NO sound.

sigh... so yeah. networked audio. As much fun as kicking yourself in the head.

I kind of recall Geekmaster pushing out /dev/audio over ssh. perhaps that would bear looking at.

As for NAS. little joy for lots of work.

http://www.alsa-project.org/~tiwai/OSS-Emulation.html could be a way forward to fix my issues...

on the plus side: http://stackoverflow.com/questions/1...98512#19198512 I shared what we learned.

C'est la vie.

Nice to know it's not ONLY me
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=207659

Last edited by twobob; 10-05-2013 at 12:30 PM.
twobob is offline   Reply With Quote
Reply

Tags
alsaplayer, audio, kual, native, twobob

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tools KUAL DateTime Button knc1 Kindle Developer's Corner 23 05-03-2014 09:52 PM
Launcher icon for KUAL? Aeris Kindle Developer's Corner 20 11-27-2013 02:03 PM
K5 Alsaplayer brianinmaine Kindle Developer's Corner 9 10-05-2013 06:41 AM
K5 rsync KUAL DUMMY twobob Kindle Developer's Corner 3 09-29-2013 10:46 AM
Kual y backdoorlock adegir1952 Amazon Kindle 3 06-14-2013 10:44 AM


All times are GMT -4. The time now is 04:37 AM.


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