dolphin/Source/Core/AudioCommon
Phil Christensen 2ed61b0ee1 C++ conformance fixes (MSVC /permissive-)
We (the Microsoft C++ team) use the dolphin project as part of our "Real world code" tests.
I noticed a few issues in windows specific code when building dolphin with the MSVC compiler
in its conformance mode (/permissive-).  For more information on /permissive- see our blog
https://blogs.msdn.microsoft.com/vcblog/2016/11/16/permissive-switch/.

These changes are to address 3 different types of issues:

1) Use of qualified names in member declarations

    struct A {
        void A::f() { } // error C4596: illegal qualified name in member declaration
                        // remove redundant 'A::' to fix
    };

2) Binding a non-const reference to a temporary

    struct S{};
  
    // If arg is in 'in' parameter, then it should be made const.
    void func(S& arg){}
  
    int main() {
      //error C2664: 'void func(S &)': cannot convert argument 1 from 'S' to 'S &'
      //note: A non-const reference may only be bound to an lvalue
      func( S() );
   
      //Work around this by creating a local, and using it to call the function
      S s;
      func( s );
    }

3) Add missing #include <intrin.h>

Because of the workaround you are using in the code you will need to include
this.  This is because of changes in the libraries and not /permissive-
2017-02-15 20:37:04 -08:00
..
AOSoundStream.cpp Use Common::Flag and Common::Event when possible 2016-08-10 16:08:15 +02:00
AOSoundStream.h Use Common::Flag and Common::Event when possible 2016-08-10 16:08:15 +02:00
AlsaSoundStream.cpp Core: Remove double newlines at the end of *_LOG messages. 2016-11-02 02:09:33 +00:00
AlsaSoundStream.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
AudioCommon.cpp Fix default audio backend on Android being "No audio output" 2017-02-08 21:29:27 +01:00
AudioCommon.h AudioCommon: Move logic for default sound backend there from ConfigManager 2017-02-05 02:55:04 +01:00
AudioCommon.vcxproj [windows] Update projects to vs2015. 2015-09-03 04:23:01 -07:00
AudioCommon.vcxproj.filters (Visual Studio) Categorize SoundStream.h with other SoundStream files 2015-04-03 14:37:03 -04:00
CMakeLists.txt cmake: Move PulseAudio detection to AudioCommon 2017-02-07 23:35:44 +01:00
CoreAudioSoundStream.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
CoreAudioSoundStream.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
DPL2Decoder.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
DPL2Decoder.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
Mixer.cpp Display warning when dumping audio if file exists 2016-12-17 22:45:01 -05:00
Mixer.h Split Audio Dumps on Sample Rate Changes 2016-06-24 21:12:15 -04:00
NullSoundStream.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
NullSoundStream.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
OpenALStream.cpp Fix missing includes 2017-01-24 03:31:51 +01:00
OpenALStream.h Added 32-bit fixed point support to OpenAL backend. 2016-10-27 18:47:13 -02:00
OpenSLESStream.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
OpenSLESStream.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
PulseAudioStream.cpp Use Common::Flag and Common::Event when possible 2016-08-10 16:08:15 +02:00
PulseAudioStream.h Use Common::Flag and Common::Event when possible 2016-08-10 16:08:15 +02:00
SoundStream.h Remove dead audio dumping code 2017-01-23 09:11:48 -05:00
WaveFile.cpp Add Silent Audio Dumping INI Option 2017-01-08 13:53:44 -05:00
WaveFile.h Remove AddStereoSample function 2016-07-01 00:59:25 -04:00
XAudio2Stream.cpp C++ conformance fixes (MSVC /permissive-) 2017-02-15 20:37:04 -08:00
XAudio2Stream.h Add includes for building on Windows without PCH 2017-01-23 01:37:41 -08:00
XAudio2_7Stream.cpp C++ conformance fixes (MSVC /permissive-) 2017-02-15 20:37:04 -08:00
XAudio2_7Stream.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
aldlist.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
aldlist.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00