Beep on the sound card

bridged with qdn.public.ddk.audio
Post Reply
Jeff HOFFMEYER

Beep on the sound card

Post by Jeff HOFFMEYER » Fri Mar 22, 2002 3:05 pm

I'm trying to make simple tones and beeps. I found a nice example
for QNX 4.x:

http://support.qnx.com/support/bok/solution.qnx?9373

but I'm using the QNX RTP. The above example refers to
/dev/dsp which I don't seem to have.

I've also tried swapping /dev/snd/pcmC0D0p
(Audio Playback) for /dev/dsp, but that doesn't work.

My sound card is correctly configured since I can play wav files.

Does anyone have any suggestions on how I can tweak the above example
to get a beep / tone out of my system?

The solution about using the system speaker with the function out8() to
output the value 255 to port 61 is not what I want because I must have
several tones.


Sincerely,

Jeff HOFFMEYER

Igor Kovalenko

Re: Beep on the sound card

Post by Igor Kovalenko » Fri Mar 22, 2002 7:48 pm

I think what you need is MIDI. And that was left out by QNX 'pseudo
ALSA' framework.

Jeff HOFFMEYER wrote:
I'm trying to make simple tones and beeps. I found a nice example
for QNX 4.x:

http://support.qnx.com/support/bok/solution.qnx?9373

but I'm using the QNX RTP. The above example refers to
/dev/dsp which I don't seem to have.

I've also tried swapping /dev/snd/pcmC0D0p
(Audio Playback) for /dev/dsp, but that doesn't work.

My sound card is correctly configured since I can play wav files.

Does anyone have any suggestions on how I can tweak the above example
to get a beep / tone out of my system?

The solution about using the system speaker with the function out8() to
output the value 255 to port 61 is not what I want because I must have
several tones.

Sincerely,

Jeff HOFFMEYER

Post Reply

Return to “qdn.public.ddk.audio”