mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
76d32c9d5a
# Objective - CI doesn't validate running examples on macOS - GitHub now has free m1 runners with a virtualised GPU https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/ ## Solution - Add a job to run examples on macOS when trying to merge a PR - Add a patch to disable audio in CI as it timeouts after 15 minutes on macOS, and fails anyway on the other runners
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
diff --git a/crates/bevy_audio/src/audio_output.rs b/crates/bevy_audio/src/audio_output.rs
|
|
index 3e8082e23..624769443 100644
|
|
--- a/crates/bevy_audio/src/audio_output.rs
|
|
+++ b/crates/bevy_audio/src/audio_output.rs
|
|
@@ -7,7 +7,7 @@ use bevy_ecs::{prelude::*, system::SystemParam};
|
|
use bevy_math::Vec3;
|
|
use bevy_transform::prelude::GlobalTransform;
|
|
use bevy_utils::tracing::warn;
|
|
-use rodio::{OutputStream, OutputStreamHandle, Sink, Source, SpatialSink};
|
|
+use rodio::{OutputStreamHandle, Sink, Source, SpatialSink};
|
|
|
|
use crate::AudioSink;
|
|
|
|
@@ -30,18 +30,10 @@ pub(crate) struct AudioOutput {
|
|
|
|
impl Default for AudioOutput {
|
|
fn default() -> Self {
|
|
- if let Ok((stream, stream_handle)) = OutputStream::try_default() {
|
|
- // We leak `OutputStream` to prevent the audio from stopping.
|
|
- std::mem::forget(stream);
|
|
- Self {
|
|
- stream_handle: Some(stream_handle),
|
|
- }
|
|
- } else {
|
|
warn!("No audio device found.");
|
|
Self {
|
|
stream_handle: None,
|
|
}
|
|
- }
|
|
}
|
|
}
|
|
|