internal speaker

Hi,

Is there any way to have the sound()/nosound() functions on QNX RTP ?

I think it’s some basic io port, may be the source could be available
somewhere ?

jhroyer <nospam28@joher.com> wrote:

Hi,

Is there any way to have the sound()/nosound() functions on QNX RTP ?

I think it’s some basic io port, may be the source could be available
somewhere ?

http://www.strangecreations.com/library/sound/speaker.txt

has a neat object Pascal implementation :wink:

The trouble is, you will need to run the app as root (your
app will need to do ThreadCtl(_NTO_TCTL_IO, 0); )
and, of course, it will not be portable.

Also, I’m not sure whether NTO uses this PIT clock fo anything else…

Boy I’d think that would be highly suspect, to use the speaker timer for
something internal to the kernel… Hey, I’m a poet and I’m not even aware
of it! :wink:

Now if ABoyd had been at the heart of Nto… :open_mouth:

-Warren


“David Donohoe” <ddonohoe@qnx.com> wrote in message
news:8u4g29$ip7$1@nntp.qnx.com

jhroyer <> nospam28@joher.com> > wrote:
Hi,

Is there any way to have the sound()/nosound() functions on QNX RTP ?

I think it’s some basic io port, may be the source could be available
somewhere ?

http://www.strangecreations.com/library/sound/speaker.txt

has a neat object Pascal implementation > :wink:

The trouble is, you will need to run the app as root (your
app will need to do ThreadCtl(_NTO_TCTL_IO, 0); )
and, of course, it will not be portable.

Also, I’m not sure whether NTO uses this PIT clock fo anything else…

“Warren Peece” <Warren@nospam.com> wrote in message
news:8u5f58$f5g$1@inn.qnx.com

Boy I’d think that would be highly suspect, to use the speaker timer for
something internal to the kernel… Hey, I’m a poet and I’m not even
aware
of it! > :wink:

Now if ABoyd had been at the heart of Nto… :open_mouth:

I see your from the old era, lol :wink:

-Warren


“David Donohoe” <> ddonohoe@qnx.com> > wrote in message
news:8u4g29$ip7$> 1@nntp.qnx.com> …
jhroyer <> nospam28@joher.com> > wrote:
Hi,

Is there any way to have the sound()/nosound() functions on QNX RTP ?

I think it’s some basic io port, may be the source could be available
somewhere ?

http://www.strangecreations.com/library/sound/speaker.txt

has a neat object Pascal implementation > :wink:

The trouble is, you will need to run the app as root (your
app will need to do ThreadCtl(_NTO_TCTL_IO, 0); )
and, of course, it will not be portable.

Also, I’m not sure whether NTO uses this PIT clock fo anything else…

Warren Peece <Warren@nospam.com> wrote:

Boy I’d think that would be highly suspect, to use the speaker timer for
something internal to the kernel… Hey, I’m a poet and I’m not even aware
of it! > :wink:

We don’t. But, the same registers control the 3 different timers
available on the clock chip – just different bits. So, if you
aren’t careful in playing with the speaker timer (or the free one)
you can disable, or change, the one the OS uses for time keeping.

(Had a customer do this… just hit the register with the bits they
wanted, rather than doing a read/modify/write, and wondered why time
stopped. Claimed the OS was broken. [this was QNX4, but the principle
is the same] So, if you’re going to play with the other clocks, make
sure you do a read/modify/write.)

-David

Wanna see my original 5.25" QNX2 disks & manuals? Need a working ESDI
controller? You aint kiddin’, old era!

QNX is awesome- but that doesn’t mean I can’t give one of their people a
little grief (even if he’s not there any more) every once in a while… :wink:

-Warren



“Mario Charest” <mcharest@zinformatic.com> wrote in message
news:8u5gd5$gaa$1@inn.qnx.com

“Warren Peece” <> Warren@nospam.com> > wrote in message
news:8u5f58$f5g$> 1@inn.qnx.com> …
Boy I’d think that would be highly suspect, to use the speaker timer for
something internal to the kernel… Hey, I’m a poet and I’m not even
aware
of it! > :wink:

Now if ABoyd had been at the heart of Nto… :open_mouth:

I see your from the old era, lol > :wink:

“David Gibbs” <dagibbs@qnx.com> wrote in message
news:8u6n5r$q1i$5@nntp.qnx.com

Warren Peece <> Warren@nospam.com> > wrote:
Boy I’d think that would be highly suspect, to use the speaker timer for
something internal to the kernel… Hey, I’m a poet and I’m not even
aware
of it! > :wink:

We don’t. But, the same registers control the 3 different timers
available on the clock chip – just different bits. So, if you
aren’t careful in playing with the speaker timer (or the free one)
you can disable, or change, the one the OS uses for time keeping.

(Had a customer do this… just hit the register with the bits they
wanted, rather than doing a read/modify/write, and wondered why time
stopped. Claimed the OS was broken. [this was QNX4, but the principle
is the same] So, if you’re going to play with the other clocks, make
sure you do a read/modify/write.)

-David

I thought there were a couple of functions for making noise come out of that
dang thing. Maybe I’m thinking of an older (QNX2 or QNX4) function. We
used to have a “dive alarm” on one of our QNX4 systems that we’d use instead
of our current text pager system, and I don’t think I went in and hit the
hardware directly but I could be wrong (wouldn’t be the first time…). It
was pretty funny. You’d be sitting in the office working and suddenly every
QNX machine would start with the submarine dive alarm thing. I kinda miss
it.

-Warren

He is in the building on a regular basis

Previously, Warren Peece wrote in qdn.public.qnxrtp.os:
{ Boy I’d think that would be highly suspect, to use the speaker timer for
{ something internal to the kernel… Hey, I’m a poet and I’m not even aware
{ of it! :wink:
{
{ Now if ABoyd had been at the heart of Nto… :open_mouth:
{
{ -Warren
{
{
{ “David Donohoe” <ddonohoe@qnx.com> wrote in message
{ news:8u4g29$ip7$1@nntp.qnx.com
{ > jhroyer <nospam28@joher.com> wrote:
{ > > Hi,
{ >
{ > > Is there any way to have the sound()/nosound() functions on QNX RTP ?
{ >
{ > > I think it’s some basic io port, may be the source could be available
{ > > somewhere ?
{ >
{ > http://www.strangecreations.com/library/sound/speaker.txt
{ >
{ > has a neat object Pascal implementation :wink:
{ >
{ > The trouble is, you will need to run the app as root (your
{ > app will need to do ThreadCtl(_NTO_TCTL_IO, 0); )
{ > and, of course, it will not be portable.
{ >
{ > Also, I’m not sure whether NTO uses this PIT clock fo anything else…
{ >
{
{
{


Pat Ford email: pford@qnx.com
QNX Software Systems, Ltd. WWW: http://www.qnx.com
(613) 591-0931 (voice) mail: 175 Terence Matthews
(613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8