@williams2 :-
Not enough info, huh? O-kayyy.....
Some of us have been messing about with ways of creating a 'loopback' ALSA device for those rare computers where the default audio card doesn't apparently have one. My new-ish HP rig has been annoying me from day one, nearly 2½ years ago, with this seeming lack of functionality.....so Fred, rcrn51, jamesbond, myself and a couple of others have been working something out:-
viewtopic.php?t=6083
Bill - rcrsn51 - originally created a basic ALSA utility for recording the default audio card's output via 'arecord'; worked well, except you couldn't hear what you were recording while you were doing so. But it was a good starting-point. Fred then got involved, 'cos he had the same issue as me.....ffmpeg and .flac came into the mix, and all sorts of ideas got tried out.
jamesbond then joined in, and has donated an .asoundrc file from FatDog which, along with loading the 'snd_aloop' module via
.....allows you to 'monitor' what's going on as you record it. It also permits easy swapping between cards without the need to re-boot every time.
-----------------------------------
Long story short, I've cobbled together a simple audio recorder, complete with a wee GUI for my personal use. It originally used 'arecord'; it's now using 'ffmpeg', and saves the file as 'audio.mp3'.
After recording has finished, it will let me play-back the recorded file using mplayer; this allows me to check the recording is OK, and upon coming to the end, OR being stopped via 'killall' keybound to the "Pause/Break" button, sleeps for 1 second, then auto-moves the just-recorded 'audio.mp3' file into a sub-directory called 'SAVED' in the same directory as the GUI scripts & function scripts.
With me so far?
Currently, after moving the 'audio.mp3' file into the 'SAVED' directory, it then opens ROX on that sub-directory ready for me to manually re-name it with a number suffix, so it doesn't get over-written by the next recording that comes in.
What I would like to do is to automatically name the 'incoming' file to the next number up from the highest-numbered file already present. In other words - for example - if the 'SAVED' directory already contains "audio-1.mp3", "audio-2.mp3" & "audio-3.mp3", I would like for it to automatically rename the next file to "audio-4.mp3" as it moves it into the 'SAVED' directory. (Or immediately after doing so; I don't mind which. Whatever's simpler to implement.)
Does that make sense? I assume this can be done, but from what research I've done so far it appears to involve some quite complicated scripting.....most likely beyond my current "pay-grade"!
Mike.