History log of /haiku/src/add-ons/media/media-add-ons/multi_audio/MultiAudioAddOn.cpp
Revision Date Author Comments
# fb5c24d8 09-Oct-2021 Adrien Destugues <pulkomandy@pulkomandy.tk>

MediaAddOn: missing const

Pretty much all add-ons are setting this to point to a const string, so
we should make sure that nothing tries to modify it.


# 811ac4d5 24-Jul-2011 François Revol <revol@free.fr>

No point in checking the new device for NULL if it's not nothrow.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42474 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eddec292 21-Jul-2010 Oliver Tappe <zooey@hirschkaefer.de>

* applied patch by kaliber that fixes more than 100 warnings - thanks a lot!
Closes #6349

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37670 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bcf291ed 28-Apr-2008 Marcus Overhagen <marcusoverhagen@gmail.com>

Removed superflous NULL pointer checks.
The media kit will always call BMediaNode
and BMediaAddOn functions with valid pointers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25232 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f89d079f 28-Mar-2008 Axel Dörfler <axeld@pinc-software.de>

* MultiAudioAddOn::_RecursiveScan() now checks the depth of the recursion,
and bails out early.
* InitCheck() now actually returns an error if something went wrong during
initialization.
* Cleanup, part III.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24627 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5da3fbc8 25-Mar-2008 Axel Dörfler <axeld@pinc-software.de>

* Moved general multi_audio functions into their own file MultiAudioUtility.cpp;
they don't really belong to the MultiAudioDevice class.
* Major coding style cleanup, part I - no functional change, I hope :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24578 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f96df43f 25-Apr-2007 Jérôme Duval <korli@users.berlios.de>

code style


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20821 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3f047e87 14-Mar-2006 Jérôme Duval <korli@users.berlios.de>

renamed multiaudio.addon to hmultiaudio.addon
audio/multi changed to audio/hmulti (avoid confusion with Be's audio/multi)
hmultiaudio.addon won't load ich_ac97 any more (reason is it's not compatible)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16782 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 758b1d0e 12-Nov-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
Otherwise the an inner class with that name is considered as friend.
gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 613b4e11 20-Nov-2004 shatty <shatty@nowhere.fake>

address compiler warnings


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10080 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dcda1706 26-Aug-2004 Jérôme Duval <korli@users.berlios.de>

Unprotected MultiAudioDevice destructor.
Now deletes MultiAudioDevices which don't init correctly.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8663 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3c232c2c 12-Jun-2004 beveloper <beveloper@nowhere.fake>

added missing newline


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7938 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c8093d3c 02-May-2003 Jérôme Duval <korli@users.berlios.de>

ParameterWeb state is now saved and restored for each node.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3130 a95241bf-73f2-0310-859d-f6bbb57e9c96


# be4e0101 17-Mar-2003 beveloper <beveloper@nowhere.fake>

The multi_audio media addon, written by Jerome Duval.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2926 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 811ac4d5022918b2125b82408a4c807def82d5cf 24-Jul-2011 François Revol <revol@free.fr>

No point in checking the new device for NULL if it's not nothrow.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42474 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eddec292d5dd8251a00851880e16e6a5c07c1e3f 21-Jul-2010 Oliver Tappe <zooey@hirschkaefer.de>

* applied patch by kaliber that fixes more than 100 warnings - thanks a lot!
Closes #6349

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37670 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bcf291ed9b7e872a4b60160de829153188a8ea2f 28-Apr-2008 Marcus Overhagen <marcusoverhagen@gmail.com>

Removed superflous NULL pointer checks.
The media kit will always call BMediaNode
and BMediaAddOn functions with valid pointers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25232 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f89d079f4e62110b78f86f114aceeaf877c6a8a9 28-Mar-2008 Axel Dörfler <axeld@pinc-software.de>

* MultiAudioAddOn::_RecursiveScan() now checks the depth of the recursion,
and bails out early.
* InitCheck() now actually returns an error if something went wrong during
initialization.
* Cleanup, part III.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24627 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5da3fbc8efbe27a16162d86e250916a5fc4da765 25-Mar-2008 Axel Dörfler <axeld@pinc-software.de>

* Moved general multi_audio functions into their own file MultiAudioUtility.cpp;
they don't really belong to the MultiAudioDevice class.
* Major coding style cleanup, part I - no functional change, I hope :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24578 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f96df43ff53bee3c0da37a90e4dee66e358b8e07 25-Apr-2007 Jérôme Duval <korli@users.berlios.de>

code style


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20821 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3f047e87db73f0be9b5f053735dd6691ab983f3f 14-Mar-2006 Jérôme Duval <korli@users.berlios.de>

renamed multiaudio.addon to hmultiaudio.addon
audio/multi changed to audio/hmulti (avoid confusion with Be's audio/multi)
hmultiaudio.addon won't load ich_ac97 any more (reason is it's not compatible)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16782 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 758b1d0e05fe1042cce6e00d194a147802d4f9be 12-Nov-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
Otherwise the an inner class with that name is considered as friend.
gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 613b4e1131046e9456ba81fd050219666389d6c1 20-Nov-2004 shatty <shatty@nowhere.fake>

address compiler warnings


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10080 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dcda1706fafd248a4ac95962f47815c4b6250ec0 26-Aug-2004 Jérôme Duval <korli@users.berlios.de>

Unprotected MultiAudioDevice destructor.
Now deletes MultiAudioDevices which don't init correctly.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8663 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3c232c2cba8e1ee6a5a41ea1258c9fdf5f1a5f82 12-Jun-2004 beveloper <beveloper@nowhere.fake>

added missing newline


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7938 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c8093d3c8dd0841abcb80ea7efd760a8455a7aac 02-May-2003 Jérôme Duval <korli@users.berlios.de>

ParameterWeb state is now saved and restored for each node.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3130 a95241bf-73f2-0310-859d-f6bbb57e9c96


# be4e010170a900c3c38b00e17f6104a7bdb938ed 17-Mar-2003 beveloper <beveloper@nowhere.fake>

The multi_audio media addon, written by Jerome Duval.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2926 a95241bf-73f2-0310-859d-f6bbb57e9c96