arecord on QNX4: anyone got it working?

Ok, I now have a suitable sound card working with aplay under QNX4. It is a
SoundBlaster Live! Value, model# CT4830 with the EMU10K1 chip set.

Playback works fine with aplay, though I haven’t comprehensively tested this
with many file types.

However, I can’t record anything. I’m hoping that I am just missing some
option on arecord.

If I try “arecord -w -t 10 test.wav” (attempting to record a 10 second WAV
file) and then speak into the microphone, it will print out two informative
status lines, create a “test.wav” file 44 bytes long, and then do nothing.
It will not stop after 10 seconds.

When I hit CNTL-C, it prints

Got a signal: 2
Got a signal: 15

and then it just sits… Sometimes it eventually returns me to the
command prompt, and sometimes is freezes the entire machine.

Any tips?

TIA,
Mark

Mark,
I’ve used arecord before, and this is what I’ve found:

  • As you probably know, you need to set the proper mixer values for
    recording, so if you use a mic, you have to have that as the selected record
    input.
  • I like to use the M option (the m option can be used too). It’s important
    to specify the quality of the recording, or it doesn’t know how to react.
  • The ‘t’ flag doesn’t have a space after it (at least in my experience, I
    didn’t put one in and it worked fine).

I would run “arecord -w -M -t10 test.wav” and it would just use whichever
mixer setting is selected for recording.

Hope this helps,
R B Adler

“Mark Johnson” <nooz@my-deja.com> wrote in message
news:8tsif8$spc$1@inn.qnx.com

Ok, I now have a suitable sound card working with aplay under QNX4. It is
a
SoundBlaster Live! Value, model# CT4830 with the EMU10K1 chip set.

Playback works fine with aplay, though I haven’t comprehensively tested
this
with many file types.

However, I can’t record anything. I’m hoping that I am just missing some
option on arecord.

If I try “arecord -w -t 10 test.wav” (attempting to record a 10 second
WAV
file) and then speak into the microphone, it will print out two
informative
status lines, create a “test.wav” file 44 bytes long, and then do nothing.
It will not stop after 10 seconds.

When I hit CNTL-C, it prints

Got a signal: 2
Got a signal: 15

and then it just sits… Sometimes it eventually returns me to the
command prompt, and sometimes is freezes the entire machine.

Any tips?

TIA,
Mark

Hi RB,

Thanks for the help. I think I am getting close.

I have tried what you suggested (arecord -w -M -t10 test.wav) with an SB 64
card (ES1373 chipset, audiopci driver) , and I get a wav file containing
exactly 10 seconds of silence. I have used mic input and line input…in
both cases, silence.

I don’t know anything about setting the proper mixer values…can you clue
me in? What command-line program can I use to do that?

Thanks,
Mark

“R B Adler” <no@mail.com> wrote in message news:8tuv9s$128$1@inn.qnx.com

Mark,
I’ve used arecord before, and this is what I’ve found:

  • As you probably know, you need to set the proper mixer values for
    recording, so if you use a mic, you have to have that as the selected
    record
    input.
  • I like to use the M option (the m option can be used too). It’s
    important
    to specify the quality of the recording, or it doesn’t know how to react.
  • The ‘t’ flag doesn’t have a space after it (at least in my experience, I
    didn’t put one in and it worked fine).

I would run “arecord -w -M -t10 test.wav” and it would just use whichever
mixer setting is selected for recording.

Hope this helps,
R B Adler

“Mark Johnson” <> nooz@my-deja.com> > wrote in message
news:8tsif8$spc$> 1@inn.qnx.com> …
Ok, I now have a suitable sound card working with aplay under QNX4. It
is
a
SoundBlaster Live! Value, model# CT4830 with the EMU10K1 chip set.

Playback works fine with aplay, though I haven’t comprehensively tested
this
with many file types.

However, I can’t record anything. I’m hoping that I am just missing some
option on arecord.

If I try “arecord -w -t 10 test.wav” (attempting to record a 10 second
WAV
file) and then speak into the microphone, it will print out two
informative
status lines, create a “test.wav” file 44 bytes long, and then do
nothing.
It will not stop after 10 seconds.

When I hit CNTL-C, it prints

Got a signal: 2
Got a signal: 15

and then it just sits… Sometimes it eventually returns me to the
command prompt, and sometimes is freezes the entire machine.

Any tips?

TIA,
Mark

\

Mark,

I use a few different things. One I use is an app that I got from QNX. I
don’t remember where or who I got it from, but it’s very useful (although I
don’t use a mouse in QNX, and the whole thing is graphical, so I have to use
the TAB key a lot and see what it does).

Another thing I use is an application that I wrote to change the mixers. I
set it up to use the ALSA controls for the mixer and set whichever channels
I want. If you have no ALSA experience, it’s not too difficult to figure
out. I might be able to share some of my stuff with you to get you started.
I typically disable most of the channels, enable the ones I want to listen
to or record from, set the levels, and that’s about it. arecord works from
there.

If you need help with ALSA stuff, just respond and I’ll see what I can do.

R B Adler


“Mark Johnson” <nooz@my-deja.com> wrote in message
news:8tv1so$3aa$1@inn.qnx.com

Hi RB,

Thanks for the help. I think I am getting close.

I have tried what you suggested (arecord -w -M -t10 test.wav) with an SB
64
card (ES1373 chipset, audiopci driver) , and I get a wav file containing
exactly 10 seconds of silence. I have used mic input and line input…in
both cases, silence.

I don’t know anything about setting the proper mixer values…can you clue
me in? What command-line program can I use to do that?

Thanks,
Mark

“R B Adler” <> no@mail.com> > wrote in message
news:8tuv9s$128$> 1@inn.qnx.com> …
Mark,
I’ve used arecord before, and this is what I’ve found:

  • As you probably know, you need to set the proper mixer values for
    recording, so if you use a mic, you have to have that as the selected
    record
    input.
  • I like to use the M option (the m option can be used too). It’s
    important
    to specify the quality of the recording, or it doesn’t know how to
    react.
  • The ‘t’ flag doesn’t have a space after it (at least in my experience,
    I
    didn’t put one in and it worked fine).

I would run “arecord -w -M -t10 test.wav” and it would just use
whichever
mixer setting is selected for recording.

Hope this helps,
R B Adler

“Mark Johnson” <> nooz@my-deja.com> > wrote in message
news:8tsif8$spc$> 1@inn.qnx.com> …
Ok, I now have a suitable sound card working with aplay under QNX4. It
is
a
SoundBlaster Live! Value, model# CT4830 with the EMU10K1 chip set.

Playback works fine with aplay, though I haven’t comprehensively
tested
this
with many file types.

However, I can’t record anything. I’m hoping that I am just missing
some
option on arecord.

If I try “arecord -w -t 10 test.wav” (attempting to record a 10
second
WAV
file) and then speak into the microphone, it will print out two
informative
status lines, create a “test.wav” file 44 bytes long, and then do
nothing.
It will not stop after 10 seconds.

When I hit CNTL-C, it prints

Got a signal: 2
Got a signal: 15

and then it just sits… Sometimes it eventually returns me to the
command prompt, and sometimes is freezes the entire machine.

Any tips?

TIA,
Mark



\

Hi R B,

Thanks for the help.

The only ALSA executables I have are aplay/arecord, mpg123, and the deva-*
drivers.

Do I need to download something else from the ALSA site, and if so, will the
current stuff compile and run under QNX4?

I should say that I am simultaneously brand-new to QNX and audio
programming. I don’t even know if the machine I have is configured to run
Photon…no one uses it here.

For me, getting arecord to work is just a necessary first step. After that,
I need to write custom code to do recording as part of a much larger
program/project.

Thanks,
Mark

“R B Adler” <no@mail.com> wrote in message news:8tvekv$fhq$1@inn.qnx.com

Mark,

I use a few different things. One I use is an app that I got from QNX. I
don’t remember where or who I got it from, but it’s very useful (although
I
don’t use a mouse in QNX, and the whole thing is graphical, so I have to
use
the TAB key a lot and see what it does).

Another thing I use is an application that I wrote to change the mixers.
I
set it up to use the ALSA controls for the mixer and set whichever
channels
I want. If you have no ALSA experience, it’s not too difficult to figure
out. I might be able to share some of my stuff with you to get you
started.
I typically disable most of the channels, enable the ones I want to listen
to or record from, set the levels, and that’s about it. arecord works
from
there.

If you need help with ALSA stuff, just respond and I’ll see what I can do.

R B Adler


“Mark Johnson” <> nooz@my-deja.com> > wrote in message
news:8tv1so$3aa$> 1@inn.qnx.com> …
Hi RB,

Thanks for the help. I think I am getting close.

I have tried what you suggested (arecord -w -M -t10 test.wav) with an SB
64
card (ES1373 chipset, audiopci driver) , and I get a wav file containing
exactly 10 seconds of silence. I have used mic input and line input…in
both cases, silence.

I don’t know anything about setting the proper mixer values…can you
clue
me in? What command-line program can I use to do that?

Thanks,
Mark

“R B Adler” <> no@mail.com> > wrote in message
news:8tuv9s$128$> 1@inn.qnx.com> …
Mark,
I’ve used arecord before, and this is what I’ve found:

  • As you probably know, you need to set the proper mixer values for
    recording, so if you use a mic, you have to have that as the selected
    record
    input.
  • I like to use the M option (the m option can be used too). It’s
    important
    to specify the quality of the recording, or it doesn’t know how to
    react.
  • The ‘t’ flag doesn’t have a space after it (at least in my
    experience,
    I
    didn’t put one in and it worked fine).

I would run “arecord -w -M -t10 test.wav” and it would just use
whichever
mixer setting is selected for recording.

Hope this helps,
R B Adler

“Mark Johnson” <> nooz@my-deja.com> > wrote in message
news:8tsif8$spc$> 1@inn.qnx.com> …
Ok, I now have a suitable sound card working with aplay under QNX4.
It
is
a
SoundBlaster Live! Value, model# CT4830 with the EMU10K1 chip set.

Playback works fine with aplay, though I haven’t comprehensively
tested
this
with many file types.

However, I can’t record anything. I’m hoping that I am just missing
some
option on arecord.

If I try “arecord -w -t 10 test.wav” (attempting to record a 10
second
WAV
file) and then speak into the microphone, it will print out two
informative
status lines, create a “test.wav” file 44 bytes long, and then do
nothing.
It will not stop after 10 seconds.

When I hit CNTL-C, it prints

Got a signal: 2
Got a signal: 15

and then it just sits… Sometimes it eventually returns me to
the
command prompt, and sometimes is freezes the entire machine.

Any tips?

TIA,
Mark





\