Пример #1
0
        private void GetBufferForRef()
        {
            WaveFile wave = _assetSystem.Database.LoadAsset(_clipRef);

            _buffer = _audioSystem.GetAudioBuffer(wave);
        }
Пример #2
0
        public void PlaySound(WaveFile wave, float volume, float pitch, Vector3 position, AudioPositionKind positionKind)
        {
            AudioBuffer buffer = GetAudioBuffer(wave);

            PlaySound(buffer, volume, pitch, position, positionKind);
        }
Пример #3
0
 public void PlaySound(AudioBuffer buffer)
 {
     PlaySound(buffer, 1.0f, 1.0f, Vector3.Zero, AudioPositionKind.ListenerRelative);
 }
Пример #4
0
        public void PlaySound(WaveFile wave, float volume, float pitch)
        {
            AudioBuffer buffer = GetAudioBuffer(wave);

            PlaySound(buffer, volume, pitch, Vector3.Zero, AudioPositionKind.ListenerRelative);
        }
Пример #5
0
 public abstract void Play(AudioBuffer buffer);