How grab whatever sound/music is being made on my computer?

I’d like to be able to grab the actual bytes of sound that’s being played/executed on my computer (whether from microphone, mp3 or flash) and be able to use the stream in realtime in a program (either c, c++ or java). Anyone know how to do this?

krecord does this for me. That is to say it depends on the hardware. On one system it works, om another one it doesn’t.

On one system it works, om another one it doesn’t.

It’s mostly a question of configuring the mixer. Actually KRecord should always work.

I think you are correct in Theory. In practice I think I moved rulers up and down in Kmixer until I run mad. Also I am still not able (trying for years now, well every new openSUSE level again, not all the time :wink: ) to get the sound from my TV card.

But I will not spoil this thread bringing in my own problems. Back to the OP.

Right, but can I use krecord from within a c, c++ or java program I’m writing?

I just installed krecord from yast. now I can’t find it to run it.
How?
Ron

Hi
It’s a KDE3 application, should be;


/opt/kde3/bin/krecord

But there should be menu entry under AudioVideo->Recorder


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 2 days 0:30, 3 users, load average: 0.22, 0.17, 0.32
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

Malcolm,
Thanks for your reply. It is right where you said it should be. I does run and record. But, upon playback I can hardly hear it unless I turn my Bose external speakers up substantially. Then the quality isn’t any good. I get the same results with Audacity. Here is my system;
Linux 2.6.31.12-0.2-desktop x86_64
Current user: danorske@linux-amhc
System: openSUSE 11.2 (x86_64)
KDE: 4.3.5 (KDE 4.3.5) “release 3”

Also, It doesn’t show up under the lizzard/applications.multimedia nor any where else.
Sorry to the OP for highjacking your thread.

Thanks,
Ron

Hi
Probably because it’s a KDE3 application, I don’t use KDE, so can’t
really offer any assistance on why it’s not playing back :frowning:

You would need to add your own menu entry (that’s because it’s
pointing to kde3) or desktop shortcut to it. The icon for it is
in /opt/kde3/share/icons/hicolor/32x32/apps/


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.2 (i586) Kernel 2.6.31.12-0.2-desktop
up 0:38, 2 users, load average: 0.27, 0.30, 0.53
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

To get back on topic…how do I grab what’s being played on my computer within code? I want to write my own app with C, C++ or Java (any will do but I do prefer Java).