mirror of
https://git.ari.lt/ari/badapplefetch.git
synced 2025-04-20 07:53:41 -05:00
use od instead of xxd
Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
parent
1f21196614
commit
e6419975df
2 changed files with 4 additions and 2 deletions
|
@ -13,6 +13,7 @@ As the creator of Neofetch has [picked up farming](https://github.com/dylanaraps
|
||||||
- yt-dlp or youtube-dl (for downloading videos off YouTube, you can change that with `YT=...`)
|
- yt-dlp or youtube-dl (for downloading videos off YouTube, you can change that with `YT=...`)
|
||||||
- LibMPV & Libpthread (if you have `LIBMPV=1`)
|
- LibMPV & Libpthread (if you have `LIBMPV=1`)
|
||||||
- BASH
|
- BASH
|
||||||
|
- `od` utility (for audio)
|
||||||
|
|
||||||
# Compiling
|
# Compiling
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,9 @@ set -eu
|
||||||
main() {
|
main() {
|
||||||
echo "#include <stdint.h>"
|
echo "#include <stdint.h>"
|
||||||
echo "const unsigned char audio[] = {"
|
echo "const unsigned char audio[] = {"
|
||||||
xxd -i <audio.ogg
|
od -An -vtu1 <audio.ogg | awk '{for (i=1; i<=NF; i++) printf "0x%s, ", $i}'
|
||||||
echo "};const uint64_t audio_size = sizeof(audio);"
|
echo "};"
|
||||||
|
echo "const uint64_t audio_size = sizeof(audio);"
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
Loading…
Add table
Reference in a new issue