| 58 | return engine::runtime::AudioBuffer{ |
| 59 | wav.sample_rate, |
| 60 | wav.channels, |
| 61 | wav.samples, |
| 62 | }; |
| 63 | } |
| 64 | |
| 65 | std::string json_option_string(const engine::io::json::Value & value) { |
| 66 | if (value.is_string()) { |
| 67 | return value.as_string(); |
| 68 | } |
| 69 | if (value.is_bool()) { |
| 70 | return value.as_bool() ? "true" : "false"; |
| 71 | } |
| 72 | if (value.is_number()) { |
no test coverage detected