(targetFormat string)
| 249 | } |
| 250 | |
| 251 | func normalizeRecordingTargetFormat(targetFormat string) string { |
| 252 | targetFormat = strings.ToLower(strings.TrimSpace(strings.TrimPrefix(targetFormat, "."))) |
| 253 | if targetFormat == "" { |
| 254 | return "m4a" |
| 255 | } |
| 256 | return targetFormat |
| 257 | } |
| 258 | |
| 259 | func encoderForRecordingTargetFormat(targetFormat string) (string, error) { |
| 260 | switch normalizeRecordingTargetFormat(targetFormat) { |
no outgoing calls
no test coverage detected