Simple Jack loop play

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Simple Jack loop play

LGTrader
Hi,
   Is there a simple Jack client that can play a loop over and over?
It must work in realtime mode. Initially I thought of alsaplayer but I
don't see a way to make it loop. Using bash completion on 'jack_' I'm
sort of surprised not to find some trivial jack player. Is there one?

   I want to use something like this to do some extended xrun testing.

Thanks,
Mark


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Simple Jack loop play

Eric Dantan Rzewnicki
On Mon, Nov 14, 2005 at 09:27:05AM -0800, Mark Knecht wrote:

> Hi,
>    Is there a simple Jack client that can play a loop over and over?
> It must work in realtime mode. Initially I thought of alsaplayer but I
> don't see a way to make it loop. Using bash completion on 'jack_' I'm
> sort of surprised not to find some trivial jack player. Is there one?
>
>    I want to use something like this to do some extended xrun testing.
>
> Thanks,
> Mark

You can use an ecasound .ewf file to loop a file. ewf's are simple text
files that allow you to specify looping parameters for a wav file.

--
Eric Dantan Rzewnicki  |  Systems Administrator
Technical Operations Division  |  Radio Free Asia
2025 M Street, NW  |  Washington, DC 20036  |  202-530-4900
CONFIDENTIAL COMMUNICATION
This e-mail message is intended only for the use of the addressee and
may contain information that is privileged and confidential. Any
unauthorized dissemination, distribution, or copying is strictly
prohibited. If you receive this transmission in error, please contact
[hidden email].


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Simple Jack loop play

LGTrader
On 11/14/05, Eric Dantan Rzewnicki <[hidden email]> wrote:

> On Mon, Nov 14, 2005 at 09:27:05AM -0800, Mark Knecht wrote:
> > Hi,
> >    Is there a simple Jack client that can play a loop over and over?
> > It must work in realtime mode. Initially I thought of alsaplayer but I
> > don't see a way to make it loop. Using bash completion on 'jack_' I'm
> > sort of surprised not to find some trivial jack player. Is there one?
> >
> >    I want to use something like this to do some extended xrun testing.
> >
> > Thanks,
> > Mark
>
> You can use an ecasound .ewf file to loop a file. ewf's are simple text
> files that allow you to specify looping parameters for a wav file.
>
> --

Thanks Eric. My concern about using complex applications is that when
I run into an xrun the question of whether it was the system or the
application always comes up. I was hoping for a VERY simple app,
almost like aplay, that was signed off by the Jack developers as
completely real time safe.

I'm surprised that there isn't a 'jack_play' app in the standard Jack release.

On the other hand, if someone knows how to make alsaplayer loop then
that would be pretty good I think. I can loop with Aqualung, but I
seem to get an xrun or two every 16-20 hours. I'd like to find another
app that can run for this period of time so that I could determine if
it's the system or Aqualung causing the xruns I am seeing.

This is obviously a pretty low level problem. I never get xruns at
256/2, and very very few at 128/2, but at 64/2 I'll see a couple on
most days.

Kernel is 2.6.14-rt12. All priorities are up around 80.

Cheers,
Mark


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Simple Jack loop play

Paul Davis
> I'm surprised that there isn't a 'jack_play' app in the standard Jack release.

as soon as we wrote one, someone would start adding stuff to it, and
we'd end up with something that isn't close to xmms/bmp/xmms2 or even
alsaplayer, but was no longer simple either.

this is even more true of playback than it is of capture. i'd love to
see someone do JACK i/o properly for xmms2, but so far ...




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Simple Jack loop play

LGTrader
On 11/14/05, Paul Davis <[hidden email]> wrote:
> > I'm surprised that there isn't a 'jack_play' app in the standard Jack release.
>
> as soon as we wrote one, someone would start adding stuff to it, and
> we'd end up with something that isn't close to xmms/bmp/xmms2 or even
> alsaplayer, but was no longer simple either.
>
> this is even more true of playback than it is of capture. i'd love to
> see someone do JACK i/o properly for xmms2, but so far ...
>

Well, yes, I can understand that. You're correct, but still, your
perfectly simple, completely correct example that could play one wave
file (in a loop in my case!) could be the only thing distributed with
Jack. It would be simple. It would be correct. It would be available.

If someone took that and created an app then fine. I don't care about
that. That's fine. However in the state I see things right now it
seems there is not tested and singed off as correct simple wave file
player for Jack. Not the end of the world, but still. There is
jack_rec. Why not jack_aplay?

Anyway, thanks for the answer. I do appreciate it.

Cheers,
Mark


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
<a href="http://ads.osdn.com/?ad_idv28&alloc_id845&op=click">http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Simple Jack loop play

Eric Dantan Rzewnicki
On Mon, Nov 14, 2005 at 04:21:28PM -0800, Mark Knecht wrote:

> On 11/14/05, Paul Davis <[hidden email]> wrote:
> > > I'm surprised that there isn't a 'jack_play' app in the standard Jack release.
> >
> > as soon as we wrote one, someone would start adding stuff to it, and
> > we'd end up with something that isn't close to xmms/bmp/xmms2 or even
> > alsaplayer, but was no longer simple either.
> >
> > this is even more true of playback than it is of capture. i'd love to
> > see someone do JACK i/o properly for xmms2, but so far ...
> >
>
> Well, yes, I can understand that. You're correct, but still, your
> perfectly simple, completely correct example that could play one wave
> file (in a loop in my case!) could be the only thing distributed with
> Jack. It would be simple. It would be correct. It would be available.
>
> If someone took that and created an app then fine. I don't care about
> that. That's fine. However in the state I see things right now it
> seems there is not tested and singed off as correct simple wave file
> player for Jack. Not the end of the world, but still. There is
> jack_rec. Why not jack_aplay?
>
> Anyway, thanks for the answer. I do appreciate it.

There is a jack.play in the jack-tools package. Not sure if it is
signed-off-on or not. don't think it loops, though.

--
Eric Dantan Rzewnicki  |  Systems Administrator
Technical Operations Division  |  Radio Free Asia
2025 M Street, NW  |  Washington, DC 20036  |  202-530-4900
CONFIDENTIAL COMMUNICATION
This e-mail message is intended only for the use of the addressee and
may contain information that is privileged and confidential. Any
unauthorized dissemination, distribution, or copying is strictly
prohibited. If you receive this transmission in error, please contact
[hidden email].


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Simple Jack loop play

Kjetil S. Matheussen
In reply to this post by LGTrader

Mark Knecht;
>
> Hi,
>   Is there a simple Jack client that can play a loop over and over?
> It must work in realtime mode. Initially I thought of alsaplayer but I
> don't see a way to make it loop. Using bash completion on 'jack_' I'm
> sort of surprised not to find some trivial jack player. Is there one?
>
>   I want to use something like this to do some extended xrun testing.
>

sndplay in the SND distribution is pretty simple.

while [ 1 ] ; do
         sndplay -bufsize 16384 file
done



--


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Simple Jack loop play

LGTrader
On 11/14/05, Kjetil Svalastog Matheussen <[hidden email]> wrote:

>
> Mark Knecht;
> >
> > Hi,
> >   Is there a simple Jack client that can play a loop over and over?
> > It must work in realtime mode. Initially I thought of alsaplayer but I
> > don't see a way to make it loop. Using bash completion on 'jack_' I'm
> > sort of surprised not to find some trivial jack player. Is there one?
> >
> >   I want to use something like this to do some extended xrun testing.
> >
>
> sndplay in the SND distribution is pretty simple.
>
> while [ 1 ] ; do
>          sndplay -bufsize 16384 file
> done
>

Using Jack? I emerged snd but I didn't get an executable called
'sndplay'. I did get one called sndfile-play but its man page says it
uses OSS so clearly that's not what I'm looking for.

I like your idea of sticking it in a loop at the command line,
assuming that the loop itself doesn't create an xrun as it loops back.

Thanks,
Mark


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
<a href="http://ads.osdn.com/?ad_idv28&alloc_id845&op=click">http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Simple Jack loop play

Kjetil S. Matheussen
On Mon, 14 Nov 2005, Mark Knecht wrote:

> On 11/14/05, Kjetil Svalastog Matheussen <[hidden email]> wrote:
>>
>> Mark Knecht;
>>>
>>> Hi,
>>>   Is there a simple Jack client that can play a loop over and over?
>>> It must work in realtime mode. Initially I thought of alsaplayer but I
>>> don't see a way to make it loop. Using bash completion on 'jack_' I'm
>>> sort of surprised not to find some trivial jack player. Is there one?
>>>
>>>   I want to use something like this to do some extended xrun testing.
>>>
>>
>> sndplay in the SND distribution is pretty simple.
>>
>> while [ 1 ] ; do
>>          sndplay -bufsize 16384 file
>> done
>>
>
> Using Jack?

Yes.

> I emerged snd but I didn't get an executable called
> 'sndplay'. I did get one called sndfile-play but its man page says it
> uses OSS so clearly that's not what I'm looking for.
>

Complain to the, eh, to someone. Get the source of SND, and write
./configure --with-jack ; make sndplay


> I like your idea of sticking it in a loop at the command line,
> assuming that the loop itself doesn't create an xrun as it loops back.
>

Yeah, but the source of sndplay is so simple that I'm sure
you can just fix a loop yourself... (You worked as some kind of programmer
or something, sometime, right? :-) )


--


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Simple Jack loop play

LGTrader
On 11/14/05, Kjetil S. Matheussen <[hidden email]> wrote:

> On Mon, 14 Nov 2005, Mark Knecht wrote:
>
> > On 11/14/05, Kjetil Svalastog Matheussen <[hidden email]> wrote:
> >>
> >> Mark Knecht;
> >>>
> >>> Hi,
> >>>   Is there a simple Jack client that can play a loop over and over?
> >>> It must work in realtime mode. Initially I thought of alsaplayer but I
> >>> don't see a way to make it loop. Using bash completion on 'jack_' I'm
> >>> sort of surprised not to find some trivial jack player. Is there one?
> >>>
> >>>   I want to use something like this to do some extended xrun testing.
> >>>
> >>
> >> sndplay in the SND distribution is pretty simple.
> >>
> >> while [ 1 ] ; do
> >>          sndplay -bufsize 16384 file
> >> done
> >>
> >
> > Using Jack?
>
> Yes.
>
> > I emerged snd but I didn't get an executable called
> > 'sndplay'. I did get one called sndfile-play but its man page says it
> > uses OSS so clearly that's not what I'm looking for.
> >
>
> Complain to the, eh, to someone. Get the source of SND, and write
> ./configure --with-jack ; make sndplay

OK, it was me being tired. The testing version in portage accepts
+jack as a keyword. The stable version does not. Thanks for the heads
up!

>
>
> > I like your idea of sticking it in a loop at the command line,
> > assuming that the loop itself doesn't create an xrun as it loops back.
> >
>
> Yeah, but the source of sndplay is so simple that I'm sure
> you can just fix a loop yourself... (You worked as some kind of programmer
> or something, sometime, right? :-) )

Nope! I did once write a DX-7 editor which sold a couple thousand
copies, but that was on an 8086 using Turbo Pascal. I've done no
programming since 1980. :-))

Anyway, let me see how it works tomorrow doing some extended tests..

thanks,
Mark


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
<a href="http://ads.osdn.com/?ad_idv28&alloc_id845&op=click">http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Simple Jack loop play

Kjetil S. Matheussen
On Mon, 14 Nov 2005, Mark Knecht wrote:

> On 11/14/05, Kjetil S. Matheussen <[hidden email]> wrote:
>> On Mon, 14 Nov 2005, Mark Knecht wrote:
>>
>>> On 11/14/05, Kjetil Svalastog Matheussen <[hidden email]> wrote:
>>>>
>>>> Mark Knecht;
>>>>>
>>>>> Hi,
>>>>>   Is there a simple Jack client that can play a loop over and over?
>>>>> It must work in realtime mode. Initially I thought of alsaplayer but I
>>>>> don't see a way to make it loop. Using bash completion on 'jack_' I'm
>>>>> sort of surprised not to find some trivial jack player. Is there one?
>>>>>
>>>>>   I want to use something like this to do some extended xrun testing.
>>>>>
>>>>
>>>> sndplay in the SND distribution is pretty simple.
>>>>
>>>> while [ 1 ] ; do
>>>>          sndplay -bufsize 16384 file
>>>> done
>>>>
>>>
>>> Using Jack?
>>
>> Yes.
>>
>>> I emerged snd but I didn't get an executable called
>>> 'sndplay'. I did get one called sndfile-play but its man page says it
>>> uses OSS so clearly that's not what I'm looking for.
>>>
>>
>> Complain to the, eh, to someone. Get the source of SND, and write
>> ./configure --with-jack ; make sndplay
>
> OK, it was me being tired. The testing version in portage accepts
> +jack as a keyword. The stable version does not. Thanks for the heads
> up!
>
>>
>>
>>> I like your idea of sticking it in a loop at the command line,
>>> assuming that the loop itself doesn't create an xrun as it loops back.
>>>
>>
>> Yeah, but the source of sndplay is so simple that I'm sure
>> you can just fix a loop yourself... (You worked as some kind of programmer
>> or something, sometime, right? :-) )
>
> Nope! I did once write a DX-7 editor which sold a couple thousand
> copies, but that was on an 8086 using Turbo Pascal. I've done no
> programming since 1980. :-))
>
> Anyway, let me see how it works tomorrow doing some extended tests..
>


Well, after looking at it, it turned out to be not that difficult at all.
Here's a patch to make sndplay play in an endless loop:


--- sndplay.c~  2005-10-31 17:24:03.000000000 -0800
+++ sndplay.c   2005-11-14 22:33:57.000000000 -0800
@@ -604,7 +604,8 @@
        return(0);
      }
  #endif
-  main_not_alsa(argc, argv);
+  for(;;)
+    main_not_alsa(argc, argv);
    return(0);
  }


Another thing, when using jack with sndplay, the disk-reading code
gets realtime priority. I'm not sure if you want that for your
testing. In case not, you can just remove the line
" jack_mus_audio_set_realtime();"
from audio.c



--


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Simple Jack loop play

LGTrader
In reply to this post by Kjetil S. Matheussen
On 11/14/05, Kjetil Svalastog Matheussen <[hidden email]> wrote:

>
> Mark Knecht;
> >
> > Hi,
> >   Is there a simple Jack client that can play a loop over and over?
> > It must work in realtime mode. Initially I thought of alsaplayer but I
> > don't see a way to make it loop. Using bash completion on 'jack_' I'm
> > sort of surprised not to find some trivial jack player. Is there one?
> >
> >   I want to use something like this to do some extended xrun testing.
> >
>
> sndplay in the SND distribution is pretty simple.
>
> while [ 1 ] ; do
>          sndplay -bufsize 16384 file
> done
>

Weird. I got around to re-emerging snd with Jack support. However I
don't have an app called sndplay:

mark@lightning ~ $ snd
snd               sndfile-info      sndfile-resample
sndfile-convert   sndfile-play
mark@lightning ~ $


lightning ~ # updatedb
lightning ~ # slocate sndplay
lightning ~ #

Thanks,
Mark


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
<a href="http://ads.osdn.com/?ad_idv28&alloc_id845&op=click">http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: Simple Jack loop play

Kjetil S. Matheussen
On Tue, 15 Nov 2005, Mark Knecht wrote:

> On 11/14/05, Kjetil Svalastog Matheussen <[hidden email]> wrote:
>>
>> Mark Knecht;
>>>
>>> Hi,
>>>   Is there a simple Jack client that can play a loop over and over?
>>> It must work in realtime mode. Initially I thought of alsaplayer but I
>>> don't see a way to make it loop. Using bash completion on 'jack_' I'm
>>> sort of surprised not to find some trivial jack player. Is there one?
>>>
>>>   I want to use something like this to do some extended xrun testing.
>>>
>>
>> sndplay in the SND distribution is pretty simple.
>>
>> while [ 1 ] ; do
>>          sndplay -bufsize 16384 file
>> done
>>
>
> Weird. I got around to re-emerging snd with Jack support. However I
> don't have an app called sndplay:
>
> mark@lightning ~ $ snd
> snd               sndfile-info      sndfile-resample
> sndfile-convert   sndfile-play
> mark@lightning ~ $
>
>
> lightning ~ # updatedb
> lightning ~ # slocate sndplay
> lightning ~ #
>


Well, for the source distribution, you have to "make sndplay"
to get sndplay.

I think the various snd-tools (sndplay, sndinfo, and some others)
are placed in a package called "snd-utils" in the planet-ccrma
distribution.



--


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel