Nils Fenner
a1b87194b8
fix #2504
...
We need to filter samples * channels; also cleaned up data types
2015-12-20 09:45:43 +01:00
Nils Fenner
44d1c6fe74
[WIP] implement threaded level meter for input level
...
Issues:
1. Using 100% processor.
2. Temporary silences an active call -> reactivate after widget hide.
Still greatly improves metering audio data, removing "read buffer" errors.
2015-12-20 09:45:43 +01:00
Nils Fenner
cbf0f2e7e0
draw the audio gain level with love
2015-12-20 09:45:43 +01:00
Nils Fenner
5805c8c2bf
improved code for non-blocking audio player
...
Instead relying on hardcoded "d->alMainSource", we bind to the given OpenAL source instead.
2015-12-20 09:45:43 +01:00
Nils Fenner
67fbee8868
use qstring for path when playing audio file
2015-12-20 09:45:43 +01:00
Nils Fenner
b44ef6c596
introduce a non-blocking AudioPlayer
...
Also moved private stuff to private class.
2015-12-20 09:45:43 +01:00
Nils Fenner
1fb9bce78c
move audio class to thread before starting
2015-12-20 09:45:22 +01:00
Nils Fenner
bb7d2a72b7
privatized audio interface
2015-12-20 09:45:22 +01:00
Nils Fenner
c23cb0043f
implement actual audio in/out subscription management
2015-12-20 09:42:14 +01:00
Nils Fenner
137eca86d6
use single mutex for audio resource locking
2015-12-20 09:42:04 +01:00
Nils Fenner
9627f45014
don't extra-subscribe audio gain metering widget
2015-12-20 09:42:04 +01:00
Nils Fenner
68e7aef916
privatized open/close audio devices
2015-12-20 09:42:04 +01:00
Nils Fenner
f6c09104e4
fix noise (clipping) while (re-)initializing in/out audio device
2015-12-20 09:40:57 +01:00
Nils Fenner
d233c6f699
cleanup audio out device on error after open
2015-12-20 09:40:57 +01:00
Nils Fenner
d631ddbc86
cleanup close audio out device
2015-12-20 09:40:57 +01:00
Nils Fenner
872be36225
un-/subscribe audio in/out in AV-Settings form
2015-12-20 09:40:57 +01:00
Nils Fenner
e7f666be77
un-/subscribe audio in/out in tox-call
2015-12-20 09:40:57 +01:00
Nils Fenner
32bc99fb38
cleanup reinitialization of changed audio in/out
2015-12-20 09:40:57 +01:00
Nils Fenner
ad6e0a85f5
add method to reinit audio in/out
2015-12-20 09:40:57 +01:00
Nils Fenner
7b98f2a4a0
cleanup close audio device
2015-12-20 09:40:57 +01:00
Nils Fenner
efda47a226
close audio output in destructor
2015-12-20 09:40:57 +01:00
Nils Fenner
c540faf271
add method to un-/subscribe to audio output as well
2015-12-20 09:40:57 +01:00
Nils Fenner
e8a4f6511d
use internal methods to open in/out audio devices
2015-12-20 09:40:57 +01:00
Nils Fenner
c5f4ceee6b
fix Audio::subscribeInput
...
Audio input/output device will only be opened, if not initialized already.
2015-12-20 09:40:57 +01:00
Nils Fenner
bde042ba3a
remove unused include and forward declarations
2015-12-20 09:40:57 +01:00
Nils Fenner
2ce92be94b
do not close output in unsubscribeInput and cleanup input internally instead
2015-12-20 09:40:57 +01:00
Nils Fenner
26fc424986
use internal cleanup methods to close in-/output devices
2015-12-20 09:40:57 +01:00
Nils Fenner
e2966b1457
open output device on "subscribeInput" only when not already opened
2015-12-20 09:40:57 +01:00
Nils Fenner
46b3ba2631
remove obsolete if
2015-12-20 09:40:57 +01:00
tux3
2b8200aa30
Fix audio timers started from wrong thread
...
This timer never actually worked
2015-12-19 17:07:19 +01:00
tux3
a0645d5cba
Fix #2700
2015-12-19 16:51:15 +01:00
tux3
40ddf81fd1
Instead of saving empty files, delete empty avatars
2015-12-19 16:43:09 +01:00
tux3
cbe8104576
Fix bad handling of empty avatars
...
Fixes #2694
2015-12-19 16:28:57 +01:00
tux3
698144c803
Fix some RawDatabase interface comments
2015-12-19 05:50:41 +01:00
tux3
8adb40d09f
Minor database fixes
2015-12-19 05:47:35 +01:00
tux3
489016f358
Fix #2439
2015-12-19 05:00:23 +01:00
tux3
9b9fa13636
Change column order when filling peer cache
...
A minor detail, but worth it.
2015-12-19 04:42:55 +01:00
tux3
9762839b78
Fix batches bigger than limit on import
2015-12-19 04:40:31 +01:00
tux3
8f06dfe254
Revert "Always offer avatars to friend who come online"
...
This reverts commit e30fb4d919
.
2015-12-19 04:20:05 +01:00
tux3
b5cdfb3dce
Implement new SQLCipher based database and history
...
qTox will automatically import the old history on startup.
This new database code is much more robust.
It is very resilient and will not corrupt or disappear after a crash or
power failure, unlike the old code.
The on-disk database format is also much more compact now.
The database sync option in the advanced settings has been removed,
we know run many database operations asynchronously so performance
should not be a problem anymore, but we always ensure resiliency
in case of abrupt termination, so there is no tradeoff anymore.
2015-12-19 04:17:28 +01:00
tux3
e286f9673c
Fix use after free of NetCamView
...
Someone was connecting a singal to a lambda capturing this, and never disconnecting it in the destructor. Capturing this is DANGEROUS, kids, don't do this at home.
2015-12-15 21:19:18 +01:00
tux3
af59b5b45a
Fix IPC not taking ownership after crash
...
In case a previous instance crashed, we were trying to activate the current owner before even checking if it was still alive, this resulted in qTox needing to be restarted twice after a crash.
2015-12-15 21:06:55 +01:00
tux3
9cf0cbde6b
Fix avatar deletion not visible
2015-12-15 20:59:09 +01:00
tux3
db2dbf459b
Merge branch 'pr2689'
2015-12-15 19:54:10 +01:00
tux3
0c2f70eb7e
Merge branch 'pr2688'
2015-12-15 19:48:29 +01:00
tux3
10673640ea
Fix #2408
2015-12-15 19:31:26 +01:00
tux3
ab8220c2cf
Remove stale TODO
2015-12-15 19:20:34 +01:00
tux3
4e1029808b
Remove useless TODO
2015-12-15 19:09:28 +01:00
tux3
cbade4bae6
Fix tiny memory leak on startup
2015-12-15 19:08:59 +01:00
rku
8231a2b1ae
Support for theming qTox tray and window icons
...
This patch adds ability to override qTox window and tray icons with ones from user's desktop theme. Some people prefer keeping tray icons consistent to achieve best looks.
Following theme icons used:
* qtox: general window icon which is also used in taskbar
* qtox-online, qtox-offline, qtox-busy, qtox-away, qtox-invisible, qtox-event: tray icons
If theme icon is not available then default built-in icon will be used.
2015-12-15 19:42:23 +02:00