Sam Atkins
0a9fa85e86
LibAudio: Use ReadonlyBytes instead of Bytes for buffer parameters
...
Bytes will implicitly cast to StringView, but not to ReadonlyBytes. That
means that if you call
`Audio::Loader::create_plugin(mapped_file->bytes())`
it will silently use the `create_plugin(StringView path)` overload.
Reading audio data does not require that data to be writable, so let's
use ReadonlyBytes for it and avoid the footgun.
2023-07-20 08:02:12 +01:00
..
2023-06-25 00:16:44 +02:00
2023-06-25 00:16:44 +02:00
2023-06-25 00:16:44 +02:00
2023-07-01 23:27:24 +01:00
2023-07-01 23:27:24 +01:00
2023-07-06 19:13:36 +01:00
2023-07-06 19:13:36 +01:00
2023-05-18 22:23:15 +02:00
2023-06-13 06:14:01 +02:00
2023-07-06 14:27:57 +01:00
2023-07-04 12:47:08 +02:00
2023-07-20 08:02:12 +01:00
2023-07-20 08:02:12 +01:00
2023-07-04 13:24:17 -06:00
2023-03-13 12:35:17 -04:00
2023-03-13 12:35:17 -04:00
2023-07-02 02:15:32 +02:00
2023-07-04 13:24:17 -06:00
2023-06-27 15:28:22 +01:00
2023-03-13 13:25:42 +01:00
2023-07-06 19:13:36 +01:00
2023-07-04 13:24:17 -06:00
2023-06-27 15:28:22 +01:00
2023-03-10 04:07:14 -07:00
2023-03-10 04:07:14 -07:00
2023-05-31 16:23:07 +02:00
2023-05-31 16:23:07 +02:00
2023-03-13 12:46:42 -04:00
2023-03-13 12:35:17 -04:00
2023-07-20 08:02:12 +01:00
2023-07-20 08:02:12 +01:00
2023-06-22 21:45:54 +02:00
2023-06-22 21:45:54 +02:00