mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 17:40:46 -04:00
make sure input device is actually 0,0
This commit is contained in:
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
@@ -23,6 +23,11 @@ AUDIO_DEVICE="${AUDIO_DEVICE:-plughw:0,0}"
|
|||||||
AUDIO_RATE="${AUDIO_RATE:-16000}"
|
AUDIO_RATE="${AUDIO_RATE:-16000}"
|
||||||
AUDIO_CHANNELS="${AUDIO_CHANNELS:-1}"
|
AUDIO_CHANNELS="${AUDIO_CHANNELS:-1}"
|
||||||
AUDIO_BITRATE="${AUDIO_BITRATE:-64000}"
|
AUDIO_BITRATE="${AUDIO_BITRATE:-64000}"
|
||||||
|
|
||||||
|
# Normalize device if env still says "default"
|
||||||
|
if [[ "${AUDIO_DEVICE}" == "default" ]]; then
|
||||||
|
AUDIO_DEVICE="plughw:0,0"
|
||||||
|
fi
|
||||||
# Flip the camera 180deg (supported by rpicam-vid/libcamera-vid)
|
# Flip the camera 180deg (supported by rpicam-vid/libcamera-vid)
|
||||||
FLIP_ARGS=(--rotation 180)
|
FLIP_ARGS=(--rotation 180)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -142,7 +142,7 @@ func LoadConfig(path string) (*Config, error) {
|
|||||||
},
|
},
|
||||||
Audio: AudioConfig{
|
Audio: AudioConfig{
|
||||||
CaptureEnabled: true,
|
CaptureEnabled: true,
|
||||||
CaptureDevice: "default",
|
CaptureDevice: "plughw:0,0",
|
||||||
SampleRate: 16000,
|
SampleRate: 16000,
|
||||||
Channels: 1,
|
Channels: 1,
|
||||||
Bitrate: 64000,
|
Bitrate: 64000,
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ cameraServo:
|
|||||||
allowRawPulse: false
|
allowRawPulse: false
|
||||||
audio:
|
audio:
|
||||||
captureEnabled: true
|
captureEnabled: true
|
||||||
captureDevice: default
|
captureDevice: plughw:0,0
|
||||||
sampleRate: 16000
|
sampleRate: 16000
|
||||||
channels: 1
|
channels: 1
|
||||||
bitrate: 64000
|
bitrate: 64000
|
||||||
|
|||||||
Reference in New Issue
Block a user