BPLAY(1)
π BPLAY β buffered sound recording/playing π
okay bestie, welcome to the General Commands Manual, section 1, and this is the page for bplay and brec. it's giving audio, it's giving buffered, it's giving iconic. let's go π
β¨ NAME β¨
bplay, brec β buffered sound recording/playing π§
π¦ SYNOPSIS π¦
bplay [-d device] [-B buffersize] [-S] [-s speed] [-b bits] [[-t secs] |
[-T samples]] [[-j secs] | [-J samples]] [-D level] [file]
brec [-d device] [-B buffersize] [-S] [-s speed] [-b bits] [[-t secs] |
[-T samples]] [-r|-v|-w] [-D level] [file]
π DESCRIPTION π
so here's the tea. bplay takes data from the named sound file β or from the standard input if you didn't give it a filename β and copies it over to the audio device. it's basically the file-to-speaker pipeline of your dreams. π
and brec is the mirror twin: it copies data from the audio device into the named sound file, or to the standard output if there's no filename. recording era fr fr. ποΈ
now the lore: these programs are meant to be drop-in replacements for the vplay and vrec programs by Michael Beck (beck@informatik.hu-berlin.de). so if you already know those, you already know these. slay. β¨
πΈ OPTIONS πΈ
-Bbuffersize β use the audio buffer size you supply instead of the default one. big buffer energy. π«Ά-ddevice β use the audio device you supply instead of the default one. pick your fave. π-Sβ the sound file is stereo. two channels, double the vibe.-sspeed β the speed, in samples per second. β‘-bbits β the number of bits per sample. only8and16are currently supported, so don't go inventing new bit depths bestie. π-tsecs β how many seconds to play or record. β±οΈ-Tsamples β how many samples to play or record. π’-jsecs β when playing, how many seconds to skip at the beginning of the input before playing. like skipping the intro, but for your audio data. π-Jsamples β when playing, how many samples to skip at the beginning of the input before playing. same skip, sample units. βοΈ-rβ when recording, write a raw sound file. rawr. π¦-vβ when recording, write a Creative Labs VOC sound file.-wβ when recording, write a Microsoft Wave sound file. β οΈ note that the WAVE file format is limited to4GiBfilesize. recording more data is possible, but the length info won't be consistent. so like, it works but it's lying to you a little. π-qβ quiet mode. no messages are displayed. π€« not a peep.-Dlevel β print debug information tostderr. debug level ranges from0to2, where0is no debug information. turn it up when things get mysterious. π
π FILES π
/dev/dspβ the audio device. π
π BUGS π
okay so we gotta be honest with you, bestie. buckle up.
- the
-t,-T,-jand-Joptions may do strange things when playing VOC files. yes, strange. no, we can't elaborate. π - there are limitations on recording VOC format files β specifically, VOC files are only recorded in the
1.20version of the format, which some player programs may choke on. there is also currently a limit of around16Mon the size of a VOC file which will be recorded. this is probably not a problem since, quote, "I don't think anybody really uses VOC files anymore." π periodt, honestly. - this program prefers to run setuid root. why? because it wants to use
setpriority()to run at the highest possible priority, and it also locks down the buffers it uses to avoid them being swapped out. so that's the reason. main character privileges, literally. π
π«Ά AUTHOR π«Ά
David Monro (davidm@amberdata.demon.co.uk or davidm@cs.usyd.edu.au) β the icon, the legend, the one who made this. π
also, the option parsing code was originally taken from vplay to maintain compatibility. keeping it consistent, as one does. β¨
and that's the whole page, bestie!! this came from the General Commands Manual, dated 20 September 1999, and honestly it ate. go play some sounds, record some sounds, and remember: big buffer, big heart. πππ¦πΈπ
π¦ where this page comes from
- debian bookworm: bplay 0.991-10.1
- debian trixie: bplay 0.991-11 Β· GPL-2.0-or-later
- ubuntu jammy: bplay 0.991-10build1
- ubuntu noble: bplay 0.991-10.2
- ubuntu questing: bplay 0.991-11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms