Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to apply a single effect to a single track #4

Open
kuamanet opened this issue Aug 22, 2022 · 0 comments
Open

Allow to apply a single effect to a single track #4

kuamanet opened this issue Aug 22, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@kuamanet
Copy link

Example of usage

try {
      // AAC example: https://dl.espressif.com/dl/audio/ff-16b-2c-44100hz.aac
      const baseAudioSource = AudioSource.uri(Uri.parse("asset:///audio/nature.mp3"));
      const audioSourceWithEffects =
          AudioSource.uri(Uri.parse("asset:///audio/nature.mp3")).pipeline(AudioPipeline(
        audioEffects: [
          Equalizer(), // iOS - Android cross platform equalizer
          Delay(), // Delay audio effect
          Reverb(), // Reverb audio effect
        ],
      ));

      await _player.setAudioSource(
        ConcatenatingAudioSource(
          children: [
            baseAudioSource,
            audioSourceWithEffects,
          ],
        ),
      );
    } catch (e) {
      print("Error loading audio source: $e");
    }
@kuamanet kuamanet added the enhancement New feature or request label Aug 22, 2022
@kuamanet kuamanet added this to the First release milestone Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant