---
tags:
    - "Audio, Sound, Music, Ambient, Sfx"
---

# Audio Source Set Gamepad Speaker Mix Level Default

[Audio](../index.md) / [Audio Source](index.md) / **Audio Source Set Gamepad Speaker Mix Level Default**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

Returns the execution of Set Gamepad Speaker Mix Level Default method on the Audio Source component

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.Audio;

namespace VisualScript.Runtime
{
    [Get]
    
    [Title("Audio Source Set Gamepad Speaker Mix Level Default")]
    [Category("Audio/Audio Source/Set Gamepad Speaker Mix Level Default")]
    [Description("Returns the execution of Set Gamepad Speaker Mix Level Default method on the Audio Source component")]
    
    [Image(typeof(IconAudioSource), ColorTheme.Type.Yellow)]
    [Keywords("Audio, Sound, Music, Ambient, Sfx")]
    
    [Serializable]
    public class GenTypeBool_AudioSource_SetGamepadSpeakerMixLevelDefault_1 : TypeBool
    {
        [SerializeField] private GetGameObject m_AudioSource = new GetGameObject(
            new GenTypeGameObject_AudioSource()
        );
        
        [SerializeField] private GetInteger m_Slot = new GetInteger();
        
        public override bool Get(Args args)
        {
            AudioSource component = this.m_AudioSource.Get<AudioSource>(args);
            if (component == null) return default;
            
            bool value = (bool) component.SetGamepadSpeakerMixLevelDefault(
                (int) this.m_Slot.Get(args)
            );
            
            return value;
        }
        
        public override string ToString()
        {
            return $"{this.m_AudioSource} Set Gamepad Speaker Mix Level Default ({this.m_Slot})";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}


```

