Add bitrate option

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-12-21 23:43:18 -05:00
parent 57da64203f
commit 357df0bbfa
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,5 @@
(define fifo-file "/tmp/mpd.fifo")
(define bitrate 44100)
(define fps 30)
(define resolution 1)
(define scale 1)

4
yammer.scm Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env -S guile
!#
;;;
;;; Copyright (C) 2023 Skylar Widulski
;;;
@ -43,7 +45,7 @@
;; Define widely used constants in relation to config values
(define recip-fps (/ 1 fps))
(define sample-size (* 4 (round (* 3 (* (/ 44100 4) recip-fps)))))
(define sample-size (* 4 (round (* 3 (* (/ bitrate 4) recip-fps)))))
;; Plan definition (if using fft)
(define plan #f)