Author |
Message |
Gmartin3
Joined: Oct 19, 2021 Posts: 81
|
Posted: Apr 26, 2024 9:07 PM Post subject: Playing multiple mp3s. |
|
I have a design I am working on that will change the volume on mp3 files. Is it possible to have two sound readers connected to the PCM audio player. One going into the right channel and one going into the left
Is not then can I use two sets of sound file readers and pcm audio players one for each mp3 |
|
|
jarek
Joined: Oct 22, 2007 Posts: 1049
|
Posted: Apr 26, 2024 9:32 PM Post subject: |
|
Yes, you can use 2 SoundReaders, connected to left and right input of PCMAudioPlayer. Make sure audio (mp3) in both readers are similar (same rate).
If you want more SoundReaders, it is also possible, but they need to be mixed before going to PCMAudioPlayer. Only one output (from the mixer) can go to each input of the PCMAudioPlayer. |
|
|
Gmartin3
Joined: Oct 19, 2021 Posts: 81
|
Posted: Apr 26, 2024 9:45 PM Post subject: |
|
"you can use 2 SoundReaders, connected to left and right input of PCMAudioPlayer. Make sure audio (mp3) in both readers are similar (same rate)."
I tried this but the volumes do not change independently
So I think I can change volume by using an expression evaluator on the sound reader output and connect that to a channel. |
|
|
jarek
Joined: Oct 22, 2007 Posts: 1049
|
Posted: Apr 27, 2024 1:19 AM Post subject: |
|
Yes, that is a good way. Connect soundreader to the first input on ExpressionEvaluator. And connect second input to a volume control (like a slider) which has a range between 0 and 1. And multiply them. Use "Scalar" version of the ExpressionEvaluator. |
|
|
Giannis76
Joined: Jan 11, 2023 Posts: 40
|
Posted: Jun 12, 2024 2:46 PM Post subject: |
|
Hey Martin and Jarek,
I tried the mentioned solution, to
"Connect soundreader to the first input on ExpressionEvaluator. And connect second input to a volume control (like a slider) which has a range between 0 and 1. And multiply them. Use "Scalar" version of the ExpressionEvaluator."
However, the sound of the mp3 file does not change in volume ... does anybody would be so kind and share a snippet from that solution ...
thanks for bringing that topic up! |
|
|
Giannis76
Joined: Jan 11, 2023 Posts: 40
|
Posted: Jun 12, 2024 2:47 PM Post subject: |
|
Hey Martin and Jarek,
I tried the mentioned solution, to
"Connect soundreader to the first input on ExpressionEvaluator. And connect second input to a volume control (like a slider) which has a range between 0 and 1. And multiply them. Use "Scalar" version of the ExpressionEvaluator."
However, the sound of the mp3 file does not change in volume, when changing the slider value ... does anybody would be so kind and share a snippet from that solution ...
thanks for bringing that topic up! |
|
|
Giannis76
Joined: Jan 11, 2023 Posts: 40
|
Posted: Jun 12, 2024 5:42 PM Post subject: |
|
Ok ... I tried it again ... and today it works ... :) |
|