Hello
I need to create a virtual microphone for some tests of systems using
alsa. The application that is tested is only able to use default devices.
I created this .asoundrc file
pcm.audinp {
type file
slave.pcm hw:0,0
file /dev/null
infile
Yves wrote:
pcm.audinp {
type file
slave.pcm hw:0,0
file /dev/null
infile /home/user/virtualmic.pipe
format raw
}
pcm.!default {
type plug
slave.pcm audinp
}
virtualmic.pipe is a named pipe.
I can cat a raw sound file to
On Dec 21, 2007 9:39 PM, Carlos Hernandez [EMAIL PROTECTED] wrote:
Here the format, rate and channels are set up, and these are the
same as the original audio file. Then I suppose I would not have to
specify these parameters with arecord.
running arecord:
[EMAIL PROTECTED]:~$ arecord -D
I know... and that's the reason why I can specify that, using the asound.conf.
The source audio file is in 16 bit, 44100, stereo... but when I
record with arecord, it does with 8bit, 8k, mono.
So I must change this before arecord record the audio... where? .. I
suppose this should be in
well... I really want to use another application(mp4live)... not arecord.
So this application just ask me for : sample rate, channels and
what Alsa device to use.
I've tell it plugfile device, 44100 as sample rate, and stereo(2
channels). As you can see I cannot specify the format.
When I run
On Sat, 22 Dec 2007, Carlos Hernandez wrote:
well... I really want to use another application(mp4live)... not arecord.
So this application just ask me for : sample rate, channels and
what Alsa device to use.
Except that mp4live does not use alsa, it uses oss if I read the data right
List of
Last version come with Alsa support (configure with --enable-mp4live-alsa)
ALSAaudio_alsa_source.cpp
in fact I've used Alsa, and it works perfect using default device.
But file device doesnt :(
On 22/12/2007, Bill Unruh [EMAIL PROTECTED] wrote:
On Sat, 22 Dec 2007, Carlos Hernandez wrote:
On Dec 21, 2007 10:58 PM, Carlos Hernandez [EMAIL PROTECTED] wrote:
I know... and that's the reason why I can specify that, using the asound.conf.
aplay and arecord are not aware of those parameters in asound.conf.
They just see a stream of 1s and 0s. You have to tell them how to
interpret it.
On 18-12-07 05:32, Carlos Hernandez wrote:
Can someone tell me how to correctly configure the file plugin to read
audio from a file?...
This works:
pcm.infile {
@args [ FILE ]
@args.FILE {
type string
}
type file
slave {
I dont want to use aplay or arecord.
I got mp4live (as file player), and want to read audio with this application.
I've passed the param infile:/home/carlos/record.raw
The problem is that mp4live shows an error:
mp4live: pcm_params.c:2351: sndrv_pcm_hw_params: Assertion `err = 0' failed.
Wrong format of your audio file? Do you know what your application expects?
Kindest regards
Julien
Music was my first love and it will be my last (John Miles)
FIND MY WEB-PROJECT AT:
http://ltsb.sourceforge.net
the Linux TextBased Studio guide
=== AND MY
I've spend so many days trying to make the file plugin to work. I've
read the pcm_plugins documentation and Everything everywhere, but no
luck..
here is my asound.conf
pcm.player {
type plug
slave {pcm fileplayer}
}
pcm.fileplayer {
type file
slave null
infile
12 matches
Mail list logo