Skip to contentSkip to conversation

dsnoop

DISCUSSION David E. Storey 3 participants 4 messages May 16, 2003 – May 17, 2003

lore
Share & tools
lore
#0 lore raw

Folks,

Would anyone be so kind as to offer up an example of using dsnoop? I'd like to use jack to perform all kinds on monitoring on a device and use an alsa app, namely arecord, to do the actual recording. I've tried using the jack plugin and while it works, when I hit CTRL-C on arecord to stop recording, it pretty much halts jack.

When I use dsnoop now, if there's nothing using the device, it returns:

set_params:810: Channels count non available

And if something, like jack, is using the original device, it just sits and waits without doing much of anything. My .asoundrc file looks a little something like:

pcm.intel8x0 {
type hw
card 0
}

ctl.intel8x0 {
type hw
card 0
}

pcm.snoop {
        type dsnoop
        ipc_key 3346
        slave { pcm "intel8x0" }
}
pcm.jackplug {
        type plug
        slave { pcm "jack" }
}
pcm.jack {
        type jack
        playback_ports {
                0 alsa_pcm:playback_1
                1 alsa_pcm:playback_2
        }
        capture_ports {
                0 alsa_pcm:capture_1
                1 alsa_pcm:capture_2
        }
}

Any help would be GREATLY appreciated. And if I should be using another list, please let me know kindly.

d!

-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge

#1 lore raw
Quoted 5 lines

Would anyone be so kind as to offer up an example of using dsnoop? I'd like to use jack to perform all kinds on monitoring on a device and use an alsa app, namely arecord, to do the actual recording. I've tried using the jack plugin and while it works, when I hit CTRL-C on arecord to stop recording, it pretty much halts jack.

just as a matter of interest, why not use the jack capture client?

-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge

#2 lore raw

When I don't specify a duration, it writes a frame of audio and terminates. Not terribly useful. Not sure if this is the normal mode of operation, but it doesn't meet my criteria for sure. I need to be able to record indefinitely. (which, of course, depends on storage capacity.)

d!

Quoted 9 lines · Paul Davis
Quoted 5 lines

Would anyone be so kind as to offer up an example of using dsnoop? I'd like to use jack to perform all kinds on monitoring on a device and use an alsa app, namely arecord, to do the actual recording. I've tried using the jack plugin and while it works, when I hit CTRL-C on arecord to stop recording, it pretty much halts jack.

just as a matter of interest, why not use the jack capture client?

Quoted 11 lines

-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge

#3 lore raw
Quoted 5 lines · David E. Storey

When I don't specify a duration, it writes a frame of audio and terminates. Not terribly useful. Not sure if this is the normal mode of operation, but it doesn't meet my criteria for sure. I need to be able to record indefinitely. (which, of course, depends on storage capacity.)

Try timemachine. You can find the link on the jack apps page.

Signature · 16 lines
Patrick Shirkey - Boost Hardware Ltd.
Http://www.boosthardware.com
Http://www.djcj.org - The Linux Audio Users guide
========================================

Being on stage with the band in front of crowds shouting, "Get off! No! We want normal music!", I think that was more like acting than anything I've ever done.

Goldie, 8 Nov, 2002
The Scotsman



-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java
code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge