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

Author Topic: Surround Test  (Read 2007 times)

0 Members and 1 Guest are viewing this topic.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9658
    • View Profile
    • development blog
    • Email
Surround Test
« on: November 18, 2015, 01:17:54 am »
The other day I got a new 5.1 surround system and whenever I want to test whether everything is setup right, I'm missing a nice tool to test all the speakers. Today I decided to write something. Introducing...

Surround Test


This is just the first iteration which allows you to pick the number of channels your system has (are there any systems with more than 8 channels?) and you can select a channel to play a sound from. Some channel counts are not supported and you'll just get an error message on the console.


Download

Windows [1.59 MiB]


Technical Bits

Unfortunately, there's no way with SFML to get the number of supported channels, nor is there a way to play a sound on one specific channel. This left me with the only option to give the channel count setting to the user and generating a sound buffer which plays the sound on only the selected channel.


Future

In addition to this simple surround test, I want to add another test, where one sound source is flying around the listener who is in the center. That way you can see how well the 3D effect is.
And the final goal is to have everything visualize a bit.
Ah yeah and GitHub code release will come one day as well. ;)
« Last Edit: November 18, 2015, 01:37:01 am by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Surround Test
« Reply #1 on: November 18, 2015, 04:44:48 pm »
Well this explains why you opened 2 bug tracker reports on the SFGUI repo  ;)
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9658
    • View Profile
    • development blog
    • Email
Surround Test
« Reply #2 on: November 18, 2015, 05:58:17 pm »
Hehe, yeah I ran into a few issues along the way. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

SeriousITGuy

  • Full Member
  • ***
  • Posts: 123
  • Still learning...
    • View Profile
Re: Surround Test
« Reply #3 on: November 19, 2015, 11:22:18 am »
Nice, will test this with my new 5.1 headset ;)

Hapax

  • Hero Member
  • *****
  • Posts: 3026
  • My number of posts is shown in hexadecimal.
    • View Profile
Re: Surround Test
« Reply #4 on: November 19, 2015, 08:43:58 pm »
This looks useful although I don't currently have surround sound set up so I can't test it  ;D

I want to add another test, where one sound source is flying around the listener who is in the center. That way you can see how well the 3D effect is.
And the final goal is to have everything visualize a bit.
I did this. Maybe it will be of some use.
I realised that I couldn't fully test it myself  :-[

Also:
are there any systems with more than 8 channels?
Yes. Mine has 20 outputs  8)
« Last Edit: November 20, 2015, 01:02:40 am by Hapax »
Selba Ward - SFML drawables
Kairos - Timing Library
Rectangular Boundary Collision - Rectangular SAT Collision

@Hapaxiation - Hapaxia on Twitter