Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - serdnar

Pages: [1]
1
Audio / Re: Audio output only on one channel
« on: July 08, 2020, 10:35:35 pm »
I tryed it with two cards now (USB audio card and direct), but on the same pc - same effect.
I will try on an other pc tomorrow.

btw: you can also hear it, if you are running two different frequences on each ear. example: a sinus wave with 60 and 70 HZ. Only if you have both ears on the headphone, you should hear a 10HZ benaural wave. Otherwise not. In this test, jou can hear this 10HZ wave on each single ear - which should not be the case.
If this works fine in your setup, it must be an problem of my hardware.
best and thanks so far.

2
Audio / Re: Audio output only on one channel
« on: July 08, 2020, 02:02:20 pm »
Not a big change, but this has the same effect / error.
Still a little bit of sound in the other channel as well.

  sf::SoundBuffer buffl;
   vector<sf::Int16> samplesl;
   for (int i = 0; i < 44100; i++)
   {   
      samplesl.push_back(SineWave(i, 324, 1));
   }
   buffl.loadFromSamples(&samplesl[0], samplesl.size(), 1, 44100);
   sf::Sound soundl;
   soundl.setBuffer(buffl);
   soundl.setLoop(true);
   soundl.setPosition(-1, 0, 0);
   soundl.play();

3
Audio / Re: Audio output only on one channel
« on: July 07, 2020, 05:25:13 pm »
Audio driver sounds reasonable. It is not stereo, but somhow quiet on the other ear. room correction is deactivated.

   sf::SoundBuffer buffl;
   vector<sf::Int16> samplesl;
   for (int i = 0; i < 44100; i++)
   {   
      samplesl.push_back(SineWave(i, 324, 1));
      samplesl.push_back(0);
   }
   buffl.loadFromSamples(&samplesl[0], samplesl.size(), 2, 44100);
   sf::Sound soundl;
   soundl.setBuffer(buffl);
   soundl.setLoop(true);
   //soundl.setPosition(-1, 0, 0);
   soundl.play();

4
Audio / Audio output only on one channel
« on: July 07, 2020, 03:31:02 pm »
Hey,
I try to bring a SoundBuffer to only one channel (stereo left/right).
I tryed the following:
  • create it wich two channels, only fill in every second value. -> sound is still on both ears.
  • using setPosition(-1, 0, 0); to move the sound to left. -> still some sound (but more quiet) on the right ear
Is there any possibillity to split Buffers to different channels without impacting the other channel? Some low level functionality?
Thanks

Pages: [1]
anything