hab' mich nach einer langen Pause mal wieder mit PB beschäftigt und ein kleines Projekt zum Aufnehmen von Sound gestartet. Das klappt ja mit den alten mci-Befehlen ganz gut:
Code: Alles auswählen
;Aufnahme Start
mciSendString_("open new type waveaudio alias recsound" ....
mciSendString_("set recsound time format ms" ....
mciSendString_("set recsound alignment "+Str(alignment)+" bitspersample " ...
mciSendString_("record recsound" ...
Code: Alles auswählen
mciSendString_("save recsound " + "c:\test.wav" ...
mciSendString_("close recsound" ...
Ich beziehe mich nur auf das Programm lame.exe. Denn das Arbeiten mit der lame_enc-Dll ist weit jenseits meiner Möglichkeiten.# Streaming mono 22.05 kHz raw pcm, 24 kbps output:
cat inputfile | lame -r -m m -b 24 -s 22.05 -- > output
# Streaming mono 44.1 kHz raw pcm, with downsampling to 22.05 kHz:
cat inputfile | lame -r -m m -b 24 --resample 22.05 -- > output
