Commit Graph

46 Commits

Author SHA1 Message Date
Roland Rossgotterer
d5b3a336dd Move Notification sounds into CNotificationPlayer 2019-04-11 22:11:50 +01:00
Roland Rossgotterer
77a8c46790 Use CWorker to play sound in background 2019-04-11 22:11:50 +01:00
Roland Rossgotterer
80cfb0e701 Remove construction of obsolete class QMediaResource 2019-04-11 22:11:50 +01:00
Klaus Basan
8c83020b92 Ref T567, PTT click also on key up
* added sound
* UI component
2019-04-11 22:11:45 +01:00
Klaus Basan
244c7e638a Ref T565, setup and support for "no audio transmission" sound
* UI, added checkbox for "no audio tx"
* added in audio settings
* added in sound generator
2019-04-11 22:11:42 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Klaus Basan
a01f2e36a0 Ref T535, added supervisor notifcation sound 2019-02-22 20:36:11 +00:00
Klaus Basan
dc8ea83839 Ref T494, added new sounds 2019-02-22 20:35:06 +00:00
Klaus Basan
80ed972e53 Ref T494, style
* removed some old "foreach" loops
* fixed some CLANG warnings
2019-02-22 20:35:05 +00:00
Klaus Basan
6f8d0ce2ab Formatting 2018-05-04 23:03:30 +02:00
Mathew Sutcliffe
0cf6034a29 Don't use member access notation to call static methods. 2017-10-10 00:56:54 +01:00
Klaus Basan
a9198e4f13 Ref T103, Unified naming of directory functions
* some started with get/some not (removed get, get is normally used for our getters)
* some used swift, getSwiftXZY dir (removed swift)
* used full word "directory", not dir/directory mixed
2017-09-24 19:49:53 +01:00
Klaus Basan
debd9c802f Ref T103, moved directory functions from CBuildConfig to CDirectoryUtils
getApplicationDir renamed to getBinDir() as it works different on MacOs
see https://dev.swift-project.org/w/dev/swiftpc/dirstructure/
2017-09-24 19:49:51 +01:00
Mathew Sutcliffe
3ea9e33e6b refs #937 Resolved clazy warnings: pass-by-value/reference. 2017-04-19 19:31:42 +01:00
Mathew Sutcliffe
fce1513dae refs #937 Resolved clazy warnings: unnecessary detaching of containers. 2017-04-19 19:31:38 +01:00
Mathew Sutcliffe
096e1e9a81 refs #804 Fixed Clang static analysis warnings. 2016-12-13 19:00:49 +01:00
Mathew Sutcliffe
af066be740 refs #800 Fixed copy/paste mistake. 2016-12-13 19:00:35 +01:00
Mathew Sutcliffe
5791de6860 refs #800 Fixed some implicit conversion warnings. 2016-12-13 19:00:26 +01:00
Roland Winklmeier
2d8f56a598 Link CBuildConfig and CVersion into static library blackconfig
CBuildConfig including private keys etc. should not be part of a
public library API. Therefore link it into a static library, which
is not available to end users.

refs #645
2016-05-24 13:12:23 +02:00
Roland Winklmeier
0ba46360dd Move sounds and stylesheet directory configuration to buildconfig.h.in
refs #615
2016-05-20 01:36:44 +02:00
Mathew Sutcliffe
e4adad45d0 refs #482 Rationalized the copying of files from source tree to build tree. 2015-11-19 21:02:47 +00:00
Klaus Basan
68d0b8cc98 During #475 found issue with deleter
* changed / improved deleter
* formatting in related class soundgenerator
2015-11-19 21:00:22 +00:00
Mathew Sutcliffe
d4c5dff17a qint32 -> int replacements to make implementations consistent with headers. 2015-05-31 17:27:05 +01:00
Klaus Basan
db5181c26a Sound generator: Replaced qint32 by int and formatting 2015-05-31 01:33:09 +02:00
Klaus Basan
c86b1984ef fixup! Improved samples and debugging information 2015-01-25 04:31:33 +01:00
Klaus Basan
ca07e68c34 Improved samples and debugging information
* DBus test for CSimulatedAircraft
* Output of metatypes in GUI/core
* Changed output from qDebug() to QTextStream
* Variant test for CSimulatedAircraft
2015-01-25 03:55:39 +01:00
Roland Winklmeier
a1ef1d4484 refs #320 Rename CAudioDevice to CAudioDeviceInfo
CAudioDevice implied a device handler instead of device information
2014-12-25 20:12:58 +01:00
Klaus Basan
6e5e28584f Formatting 2014-11-30 00:56:46 +01:00
Mathew Sutcliffe
dc4de279d0 refs #316 Swiftcore, swiftgui, and samples use CLogHandler to display subscribed messages. 2014-10-04 22:16:59 +01:00
Klaus Basan
0a7be12efa Fixes around audio "on remote computer"
* Better options to debug
* Fixes as of n2, https://dev.vatsim-germany.org/boards/22/topics/1792?r=1802#message-1802
* Doxygen
2014-06-09 14:44:14 +02:00
Klaus Basan
1b804ca8d7 refs #258, notification sounds for voice room joined/left
* settings for notification sounds
* wav files
* changes in GUI
2014-06-09 14:43:43 +02:00
Klaus Basan
4c952ab782 refs #240, moved notification sounds in project blackmisc
Notification sounds are used in BlackGui components. They require the whole Qt multimedia library. However, GUI only triggers playing the sound. As a workaround the notification sounds enumeration has been moved in an own class, and moved to the subproject BlackMisc. Hence it is possible to compile BlackGui without dependency to BlackSound.
2014-05-22 22:21:19 +02:00
Mathew Sutcliffe
903ddf7841 fixed compiler warnings detected by jenkins build server 2014-04-07 15:47:12 +01:00
Klaus Basan
dde9710144 Refs #140 , refs #85 Rename namespace voice to audio.
In #85 the voice context will be renamed to audio context, so the CValueObject classes will be renamed to namespace Audio too.
As #140 changes many CValueClasses, this crossover change is done in the same unit of work.
2014-03-10 14:43:06 +01:00
Klaus Basan
5a16052e30 Fixed include in sound generator 2014-02-26 14:27:30 +01:00
Klaus Basan
a43621774b refs #144 , improved SELCAL in a way that SELCAL tones will always end with 0 amplitude.
* method to write values in buffer -> writeAmplitudeToBuffer
* fixes the range from the last 0 pass so SELCAL tones will always end with 0 amplitude
2014-02-26 03:40:58 +01:00
Klaus Basan
59ff750b4a refs #144 , improved file deleter , no dependency of QObject anymore, now using single deleter object 2014-02-26 03:40:57 +01:00
Klaus Basan
7177d53552 refs #144 , sounds now can be generated, saved in a temp wav file, then played 2014-02-26 03:40:56 +01:00
Klaus Basan
7d600d4450 refs #129 , start method as proposed by RW in https://dev.vatsim-germany.org/issues/129#note-4 , using lambda.
On top addded a simple check to avoid overlapping SELCAL tones
2014-02-12 20:14:34 +01:00
Klaus Basan
4508864320 refs #129, added methods to play notification sounds
Further testing revealed shortcomings in sound generation, which were fixed:
* Sounds can be played in background (own thread)
* Tones can be pushed and pulled http://qt-project.org/doc/qt-5.0/qtmultimedia/audiooverview.html#push-and-pull
2014-02-12 20:14:29 +01:00
Klaus Basan
27db22cb44 Changed SoundGenerator to use BlackMisc::PhysicalQuantities instead of integer types (req. by RW)
lengthPerTone renamed to bytesPerTone
2014-02-07 03:10:32 +01:00
Klaus Basan
395603f932 Return values for the static sound generator methods.
Fixed playMode attribute, method to set volume
2014-02-05 23:16:03 +00:00
Klaus Basan
f9225814f9 Sound generator, a class playing simple notification sounds (1/2 frequency tones).
These tones are generated "in memory", so no sound files ("wav") are needed.

New lib blacksound for utils around audio
2014-02-05 23:15:21 +00:00
Klaus Basan
7b0dff1af5 Sound generator: allow periods of silence between tones 2014-02-05 23:15:11 +00:00
Klaus Basan
f71fe743ef Allows to pass two frequencies (as for SELCAL) as tone 2014-02-05 23:15:04 +00:00
Klaus Basan
6d99ddf9b0 Added sub project for sound refs #107
Added sound generator, which can play a series of tones
2014-02-05 23:15:02 +00:00