[squeak-dev] Sound Options on Squeak Linux - a Question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Sound Options on Squeak Linux - a Question

Milan Zimmermann-2
I have a naive question about sound drivers: Squeak VM 3.9-8 ships with 2
sound drivers (well 3):

        vm-sound-null
  vm-sound-ALSA
  vm-sound-OSS

How does Squeak, at runtime, decide which of them is used?

Is there a way to "ask" for one of them to be used first. For example, Linux
can have either ALSA or OSS or both available, what is the process of
deciding which will be used when sound is to be played?

Thanks Milan

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Sound Options on Squeak Linux - a Question

K. K. Subramaniam
On Thursday 06 March 2008 4:13:17 am Milan Zimmermann wrote:

> I have a naive question about sound drivers: Squeak VM 3.9-8 ships with 2
> sound drivers (well 3):
>
> vm-sound-null
>   vm-sound-ALSA
>   vm-sound-OSS
>
> How does Squeak, at runtime, decide which of them is used?
>
> Is there a way to "ask" for one of them to be used first. For example,
> Linux can have either ALSA or OSS or both available, what is the process of
> deciding which will be used when sound is to be played?
>
> Thanks Milan
You pass a command line parameter -vm-sound-<driver>. The default
is -vm-sound-ALSA. If you want to check which sound module a running squeak
process uses, use the command:
 $ grep vm-sound- /proc/$(pgrep -x squeak)/maps

Subbu


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Sound Options on Squeak Linux - a Question

Milan Zimmermann-2

On 2008 March 6, K. K. Subramaniam wrote:
> On Thursday 06 March 2008 4:13:17 am Milan Zimmermann wrote:
<snip>

> > Is there a way to "ask" for one of them to be used first. For example,
> > Linux can have either ALSA or OSS or both available, what is the process
> > of deciding which will be used when sound is to be played?
> >
> > Thanks Milan
>
> You pass a command line parameter -vm-sound-<driver>. The default
> is -vm-sound-ALSA. If you want to check which sound module a running squeak
> process uses, use the command:
>  $ grep vm-sound- /proc/$(pgrep -x squeak)/maps
>
> Subbu

Thanks Subbu.

yes, adding " -vm sound=ALSA" (or OSS) as parameter forces the particular
driver to be used, it seems default in Squeak 3.9-8 is ALSA but in earlier
versions it may have been OSS.  And thanks for the tip searching running
squeak, Milan