History log of /haiku/src/kits/media/SoundPlayer.cpp
Revision Date Author Comments
# 80a920f6 23-Dec-2020 Máximo Castañeda <antiswen@yahoo.es>

BSoundPlayer: check for NULL node

Fixes #16683

Change-Id: I81c252b6eeaeb35cc5f33a796a7242c0965c3f27
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3546
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# b84955d4 23-Oct-2018 Barrett17 <b.vitruvio@gmail.com>

media: Remove debug.h, finalize MediaDebug.h

* Funny rust from 0 AD.


# 2ceb090f 19-May-2016 Dario Casalinuovo <b.vitruvio@gmail.com>

media_kit: Follow up fix to use only portable codes

* My previous commit fixed x86_64 but broke all other archs.


# f4ba347b 19-May-2016 Dario Casalinuovo <b.vitruvio@gmail.com>

media_kit: Fix debug printf werrors

* When debugging was enabled in the media_kit those were
causing the build to fail complaining about werrors.


# f1059fbd 28-Jan-2016 Dario Casalinuovo <b.vitruvio@gmail.com>

BSoundPlayer: Release the node instead to delete

* It's a bad idea to delete directly a node. There are some
mechanisms behind that might break if not used correctly.
* May help with #12606.


# 5c6b9eb0 23-Feb-2012 Jerome Duval <jerome.duval@gmail.com>

Some fixes for GCC 4.6 warning: variable set but not used


# 15c81466 13-Apr-2010 Axel Dörfler <axeld@pinc-software.de>

* Reverted part of r34474 that broke binary compatibility.


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


# 6813f2c7 10-Dec-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Debug mode build fixes.


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


# 4ed344af 03-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* Moved _SoundPlayNode into the BPrivate namespace and dismissed the '_' prefix.
* Further cleanup.


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


# 812fde99 03-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* When you even already have the typedefs, why wouldn't you want to use them?
* Some cleanup, no functional change.


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


# 6fb91db7 21-Oct-2009 Michael Lotz <mmlr@mlotz.ch>

We didn't acquire/release a BSound reference when playing using a BSoundPlayer
which lead to #4825.


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


# 9b9aa75a 01-Mar-2009 Michael Lotz <mmlr@mlotz.ch>

* Implement basic support for the BSound parts of BSoundPlayer. Only one sound
at a time is supported and volume as well as start time are not taken into
account. For reasons I don't feel like investigating right now all the
BMediaTrack calls in the BTrackReader end up as pure virtual function calls
though, so it's unusable for now.
* Fix leaking the temporary buffer in BSound.
* Whitespace cleanup.


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


# 9490cc05 01-Feb-2009 Michael Lotz <mmlr@mlotz.ch>

Fix wrong check.

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


# 95096991 25-Jan-2009 Jérôme Duval <korli@users.berlios.de>

BSoundPlayer changes:
* calls the notifier in Start() and Stop()
* calls SetHasData() with true in Start() like BeOS does
* starts the timesource if not running in Start()


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


# 75daf556 06-Mar-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

fixed reversed source and destination node ids, by using the new BMedisRoster::Disconnect function.


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


# bedeb04e 11-Dec-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Forgot to check this in. GCC 4 fix.


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


# 40c2c00a 24-Oct-2004 beveloper <beveloper@nowhere.fake>

Clean up of debug output. Fixed volume control bug introduced yesterday.


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


# df42a7b5 23-Oct-2004 beveloper <beveloper@nowhere.fake>

Massive BSoundPlayer rewrite. Format negotiation and node registering/unregistering fixed.


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


# d6105ced 23-Oct-2004 beveloper <beveloper@nowhere.fake>

Some BSoundPlayer style changes and bugfixes


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


# 2386ff94 04-Jul-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Added missing include.


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


# 5ac4fbd7 19-Jun-2003 beveloper <beveloper@nowhere.fake>

clean up of debugging functions
FATAL is now replaced by ERROR and active at DEBUG=1 or above
TRACE is active at 2 or above
PRINT(level, ...) can be used for DEBUG= level or abode
INFO is removed


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


# 2eb7012d 06-Jun-2003 beveloper <beveloper@nowhere.fake>

added missing header file


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


# adc3b786 06-Jun-2003 Jérôme Duval <korli@users.berlios.de>

ok the right file this time ...
*Volume* methods implemented; tested with SoundPlayerTest.cpp; only valid when connected with R5 AudioMixer


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


# 37ed595f 06-Jun-2003 Jérôme Duval <korli@users.berlios.de>

*Volume* methods implemented; tested with SoundPlayerTest.cpp; only valid when connected with R5 AudioMixer


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


# a0703a47 03-Jun-2003 beveloper <beveloper@nowhere.fake>

fixed BSoundPlayer::Stop() bugs exposed by CL-Amp


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


# a8c2408c 03-Jun-2003 beveloper <beveloper@nowhere.fake>

fixed format setup, CL-Amp works now


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


# 5917dd5b 01-Jun-2003 beveloper <beveloper@nowhere.fake>

various timing related bugfixes


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


# 2bff4d99 30-May-2003 beveloper <beveloper@nowhere.fake>

start node at correct performance time


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


# 9bedd42c 29-May-2003 beveloper <beveloper@nowhere.fake>

many fixes to improve timing


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


# 95531d1e 11-May-2003 Jérôme Duval <korli@users.berlios.de>

Working SoundPlayer and SoundPlayerNode, it lacks volume methods


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


# 52a38012 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


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


# 5c6b9eb00d0d623c12f72eb82a471cb4c71f4f33 23-Feb-2012 Jerome Duval <jerome.duval@gmail.com>

Some fixes for GCC 4.6 warning: variable set but not used


# 15c81466c473ec4607aa3a160e0e8fcead2173ef 13-Apr-2010 Axel Dörfler <axeld@pinc-software.de>

* Reverted part of r34474 that broke binary compatibility.


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


# 6813f2c744cb144725cf9ea9e91cdd1764cd5d22 10-Dec-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Debug mode build fixes.


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


# 4ed344af25dfabf5f582fdd00ed44024e4dcf9f0 03-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* Moved _SoundPlayNode into the BPrivate namespace and dismissed the '_' prefix.
* Further cleanup.


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


# 812fde99a1471c6f8fa7d659d5ce3e0383b71142 03-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* When you even already have the typedefs, why wouldn't you want to use them?
* Some cleanup, no functional change.


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


# 6fb91db70868d021a06ffca8d675078898cb89c6 21-Oct-2009 Michael Lotz <mmlr@mlotz.ch>

We didn't acquire/release a BSound reference when playing using a BSoundPlayer
which lead to #4825.


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


# 9b9aa75aac888949b014e97e054ed9d76483fb64 01-Mar-2009 Michael Lotz <mmlr@mlotz.ch>

* Implement basic support for the BSound parts of BSoundPlayer. Only one sound
at a time is supported and volume as well as start time are not taken into
account. For reasons I don't feel like investigating right now all the
BMediaTrack calls in the BTrackReader end up as pure virtual function calls
though, so it's unusable for now.
* Fix leaking the temporary buffer in BSound.
* Whitespace cleanup.


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


# 9490cc05f3b902344600a8dda62ed309a3e0cd53 01-Feb-2009 Michael Lotz <mmlr@mlotz.ch>

Fix wrong check.

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


# 9509699116775c08d2f5472b03f1ecd6e6242353 25-Jan-2009 Jérôme Duval <korli@users.berlios.de>

BSoundPlayer changes:
* calls the notifier in Start() and Stop()
* calls SetHasData() with true in Start() like BeOS does
* starts the timesource if not running in Start()


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


# 75daf5566e7d7c2885bed8ce617f0b758f9ca221 06-Mar-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

fixed reversed source and destination node ids, by using the new BMedisRoster::Disconnect function.


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


# bedeb04ec8fc3debe35c65906850ac92bcb3e8fa 11-Dec-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Forgot to check this in. GCC 4 fix.


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


# 40c2c00a3417f650cd931c547f6b0148ef67cfa1 24-Oct-2004 beveloper <beveloper@nowhere.fake>

Clean up of debug output. Fixed volume control bug introduced yesterday.


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


# df42a7b539617ec8e5c9c8c4f18e6f3a71f81301 23-Oct-2004 beveloper <beveloper@nowhere.fake>

Massive BSoundPlayer rewrite. Format negotiation and node registering/unregistering fixed.


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


# d6105cedfae3ff3ac407ed62aea89c64c5546be1 23-Oct-2004 beveloper <beveloper@nowhere.fake>

Some BSoundPlayer style changes and bugfixes


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


# 2386ff94ad624b459a21709aba1a4e3993d7f1db 04-Jul-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Added missing include.


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


# 5ac4fbd70dc5b5387cc80965de796deb820d4f05 19-Jun-2003 beveloper <beveloper@nowhere.fake>

clean up of debugging functions
FATAL is now replaced by ERROR and active at DEBUG=1 or above
TRACE is active at 2 or above
PRINT(level, ...) can be used for DEBUG= level or abode
INFO is removed


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


# 2eb7012d8e1f50b9a1e124d4f617334632e7b785 06-Jun-2003 beveloper <beveloper@nowhere.fake>

added missing header file


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


# adc3b786d1524e0c6b525fa9199fd823be928df9 06-Jun-2003 Jérôme Duval <korli@users.berlios.de>

ok the right file this time ...
*Volume* methods implemented; tested with SoundPlayerTest.cpp; only valid when connected with R5 AudioMixer


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


# 37ed595f3a8df09d25072d4a2790e4663bf3fcb0 06-Jun-2003 Jérôme Duval <korli@users.berlios.de>

*Volume* methods implemented; tested with SoundPlayerTest.cpp; only valid when connected with R5 AudioMixer


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


# a0703a47ce03792b3981bb6c2f4b8af443dec619 03-Jun-2003 beveloper <beveloper@nowhere.fake>

fixed BSoundPlayer::Stop() bugs exposed by CL-Amp


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


# a8c2408c090a51fecbbdff8075192327483eb2e4 03-Jun-2003 beveloper <beveloper@nowhere.fake>

fixed format setup, CL-Amp works now


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


# 5917dd5b85eed661e5d9297c8eb8979bf304b6dc 01-Jun-2003 beveloper <beveloper@nowhere.fake>

various timing related bugfixes


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


# 2bff4d995e9b35de82bac351a8e92b85fabd4ca8 30-May-2003 beveloper <beveloper@nowhere.fake>

start node at correct performance time


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


# 9bedd42cd1e0fdb44e39be7ef4f3c76786d59b50 29-May-2003 beveloper <beveloper@nowhere.fake>

many fixes to improve timing


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


# 95531d1e1b20987bfa84ee66d625abb5e1ea52fb 11-May-2003 Jérôme Duval <korli@users.berlios.de>

Working SoundPlayer and SoundPlayerNode, it lacks volume methods


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


# 52a380120846174213ccce9c4aab0dda17c72083 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


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