diff options
Diffstat (limited to 'devel/electron35/files/patch-media_audio_alsa_audio__manager__alsa.cc')
| -rw-r--r-- | devel/electron35/files/patch-media_audio_alsa_audio__manager__alsa.cc | 54 | 
1 files changed, 0 insertions, 54 deletions
diff --git a/devel/electron35/files/patch-media_audio_alsa_audio__manager__alsa.cc b/devel/electron35/files/patch-media_audio_alsa_audio__manager__alsa.cc deleted file mode 100644 index 57200a30988c..000000000000 --- a/devel/electron35/files/patch-media_audio_alsa_audio__manager__alsa.cc +++ /dev/null @@ -1,54 +0,0 @@ ---- media/audio/alsa/audio_manager_alsa.cc.orig	2025-03-24 20:50:14 UTC -+++ media/audio/alsa/audio_manager_alsa.cc -@@ -106,7 +106,9 @@ void AudioManagerAlsa::GetAlsaAudioDevices(StreamType  -   int card = -1; -  -   // Loop through the physical sound cards to get ALSA device hints. -+#if !BUILDFLAG(IS_BSD)  -   while (!wrapper_->CardNext(&card) && card >= 0) { -+#endif -     void** hints = NULL; -     int error = wrapper_->DeviceNameHint(card, kPcmInterfaceName, &hints); -     if (!error) { -@@ -118,7 +120,9 @@ void AudioManagerAlsa::GetAlsaAudioDevices(StreamType  -       DLOG(WARNING) << "GetAlsaAudioDevices: unable to get device hints: " -                     << wrapper_->StrError(error); -     } -+#if !BUILDFLAG(IS_BSD)  -   } -+#endif - } -  - void AudioManagerAlsa::GetAlsaDevicesInfo(AudioManagerAlsa::StreamType type, -@@ -201,7 +205,11 @@ bool AudioManagerAlsa::IsAlsaDeviceAvailable( -   // goes through software conversion if needed (e.g. incompatible -   // sample rate). -   // TODO(joi): Should we prefer "hw" instead? -+#if BUILDFLAG(IS_BSD) -+  static const char kDeviceTypeDesired[] = "plug"; -+#else -   static const char kDeviceTypeDesired[] = "plughw"; -+#endif -   return strncmp(kDeviceTypeDesired, device_name, -                  std::size(kDeviceTypeDesired) - 1) == 0; - } -@@ -253,7 +261,9 @@ bool AudioManagerAlsa::HasAnyAlsaAudioDevice( -   // Loop through the sound cards. -   // Don't use snd_device_name_hint(-1,..) since there is an access violation -   // inside this ALSA API with libasound.so.2.0.0. -+#if !BUILDFLAG(IS_BSD) -   while (!wrapper_->CardNext(&card) && (card >= 0) && !has_device) { -+#endif -     int error = wrapper_->DeviceNameHint(card, kPcmInterfaceName, &hints); -     if (!error) { -       for (void** hint_iter = hints; *hint_iter != NULL; hint_iter++) { -@@ -277,7 +287,9 @@ bool AudioManagerAlsa::HasAnyAlsaAudioDevice( -       DLOG(WARNING) << "HasAnyAudioDevice: unable to get device hints: " -                     << wrapper_->StrError(error); -     } -+#if !BUILDFLAG(IS_BSD) -   } -+#endif -  -   return has_device; - }  | 
