History log of /haiku/src/apps/soundrecorder/TrackSlider.cpp
Revision Date Author Comments
# 425ac1b6 20-Jun-2023 Alexander von Gluck IV <kallisti5@unixzen.com>

refactor: Swap %Ld for %lld in all format usages

* %Ld is an undocumented alias for %lld in glibc.
* muslc doesn't implement it for this reason.
* While we will likely never drop %Ld support,
lets clean house and set a better example.

Change-Id: Id46dad3104abae483e80cc5c05d1464d3ecd8030
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6636
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# f67a6779 26-Jan-2020 Murai Takashi <tmurai01@gmail.com>

soundrecorder: Fix PVS V595

Add NULL check for 'fBitmap', since it might be NULL
at line 71.

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


# 7f4d1af4 04-Jan-2013 Sergei Reznikov <diver@gelios.net>

Compilation fixes for x86_64.

Added quite a few missing components to image:

alert arp bc CortexAddOnHost

CDPlayer CharacterMap DeskCalc
Devices DiskUsage Expander LaunchBox MediaConverter NetworkStatus
PoorMan Pulse Screenshot ShowImage SoundRecorder TV Workspaces

DataTranslations Media Printers ScreenSaver

BSnow Cortex FontDemo OverlayImage Pairs

cddb_daemon midi_server power_daemon print_server print_addon_server

Canon LIPS3 Compatible Canon LIPS4 Compatible Gutenprint
PCL5 Compatible PCL6 Compatible PDF Writer PS Compatible

libgame.so libmedia.so

Signed-off-by: Alex Smith <alex@alex-smith.me.uk>


# 4c9da6dc 06-Nov-2010 Stephan Aßmus <superstippi@gmx.de>

Applied patch by kaliber from ticket #6349. which fixes quite a
few warnings. Thanks! I did not apply the hunks about moving
a logging function in the common accelerant code to be static.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39320 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


# 3ee96407 04-Jun-2010 Jérôme Duval <korli@users.berlios.de>

Patch from Karvjorm (ticket #6107): Localization for SoundRecorder.


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


# 42ee4863 12-Dec-2009 Jérôme Duval <korli@users.berlios.de>

Use B_OP_OVER instead of B_OP_COPY on Haiku (bug #4815)


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


# ad0c65ea 26-Jul-2009 Jérôme Duval <korli@users.berlios.de>

* now supports several audio formats for VUView and ScopeView
* cleanup


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


# 019ed09b 09-Nov-2008 Jérôme Duval <korli@users.berlios.de>

* cancel rendering if selection changed
* update track slider borders if selection changed
* added drag'n drop from ScopeView


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


# 3e8cd549 13-Jan-2007 DarkWyrm <darkwyrm@gmail.com>

Initialized a couple of wild pointers -- fixes a startup crash


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


# 5fa040e3 14-Sep-2006 Stephan Aßmus <superstippi@gmx.de>

* some clean up for style guide conformance


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


# 42f70a5d 04-Jun-2006 Jérôme Duval <korli@users.berlios.de>

TrackSlider now uses an offscreen bitmap to avoid flickering on side thumbs
I'm not so pleased with the code, though it works nice on Dano at least. Still lot of graphics bugs on Haiku
DrawButton is now transparent
little refactoring in ScopeView


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


# 8c2f5082 10-May-2006 Jérôme Duval <korli@users.berlios.de>

made timestamp font sensitive


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17419 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


# 2a0bfa01 05-Jul-2005 Jérôme Duval <korli@users.berlios.de>

TrackSlider doesn't need pointer history


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


# 57e2f323 09-Jun-2005 Jérôme Duval <korli@users.berlios.de>

Added SoundRecorder (inspired by SoundCapture from beos samples)
Alpha state


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


# 7f4d1af49dd1d67ecbf1d934eddd92cae7c4c558 04-Jan-2013 Sergei Reznikov <diver@gelios.net>

Compilation fixes for x86_64.

Added quite a few missing components to image:

alert arp bc CortexAddOnHost

CDPlayer CharacterMap DeskCalc
Devices DiskUsage Expander LaunchBox MediaConverter NetworkStatus
PoorMan Pulse Screenshot ShowImage SoundRecorder TV Workspaces

DataTranslations Media Printers ScreenSaver

BSnow Cortex FontDemo OverlayImage Pairs

cddb_daemon midi_server power_daemon print_server print_addon_server

Canon LIPS3 Compatible Canon LIPS4 Compatible Gutenprint
PCL5 Compatible PCL6 Compatible PDF Writer PS Compatible

libgame.so libmedia.so

Signed-off-by: Alex Smith <alex@alex-smith.me.uk>


# 4c9da6dc09e79654948b64ba600c4d4b1b12109e 06-Nov-2010 Stephan Aßmus <superstippi@gmx.de>

Applied patch by kaliber from ticket #6349. which fixes quite a
few warnings. Thanks! I did not apply the hunks about moving
a logging function in the common accelerant code to be static.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39320 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


# 3ee964070b768aa3482c08fa82aa73e70cd175d1 04-Jun-2010 Jérôme Duval <korli@users.berlios.de>

Patch from Karvjorm (ticket #6107): Localization for SoundRecorder.


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


# 42ee4863897477aa7ca2a070b8531c2bd5155e31 12-Dec-2009 Jérôme Duval <korli@users.berlios.de>

Use B_OP_OVER instead of B_OP_COPY on Haiku (bug #4815)


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


# ad0c65ea97e4acc420fc3a60e884f2402ad2859b 26-Jul-2009 Jérôme Duval <korli@users.berlios.de>

* now supports several audio formats for VUView and ScopeView
* cleanup


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


# 019ed09bee683a10c8d902d2c01e29f584950359 09-Nov-2008 Jérôme Duval <korli@users.berlios.de>

* cancel rendering if selection changed
* update track slider borders if selection changed
* added drag'n drop from ScopeView


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


# 3e8cd549ec6f8c407b2fc96ff795a05f4c24b50f 13-Jan-2007 DarkWyrm <darkwyrm@gmail.com>

Initialized a couple of wild pointers -- fixes a startup crash


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


# 5fa040e3b9000ac03c082863e7f0a52d17089933 14-Sep-2006 Stephan Aßmus <superstippi@gmx.de>

* some clean up for style guide conformance


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


# 42f70a5d3d3b1c904e2dd8ff63abdf0623b02faf 04-Jun-2006 Jérôme Duval <korli@users.berlios.de>

TrackSlider now uses an offscreen bitmap to avoid flickering on side thumbs
I'm not so pleased with the code, though it works nice on Dano at least. Still lot of graphics bugs on Haiku
DrawButton is now transparent
little refactoring in ScopeView


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


# 8c2f5082ec017231c8d6bbe21d0eb11f369d59df 10-May-2006 Jérôme Duval <korli@users.berlios.de>

made timestamp font sensitive


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17419 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


# 2a0bfa016db0071d31583c4fdbb0ee8e4302dcdd 05-Jul-2005 Jérôme Duval <korli@users.berlios.de>

TrackSlider doesn't need pointer history


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


# 57e2f323c716056c45fb64f8e8d1f5e034ad0f4f 09-Jun-2005 Jérôme Duval <korli@users.berlios.de>

Added SoundRecorder (inspired by SoundCapture from beos samples)
Alpha state


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