Tobias Blomberg
b38dff32ec
Check channel number when opening audio device
...
The configured channel number for an audio device is now checked against
the value set in CARD_CHANNELS before trying to open the audio device.
2020-07-27 18:57:26 +02:00
Tobias Blomberg
6810be1d2d
Bugfix for the previous non-working Async::AudioIO bugfix
...
- There was a problem with the previous bugfix in Async::AudioIO which
caused audio output to hang under certain circumstances.
2017-10-21 14:58:05 +02:00
Tobias Blomberg
94e2e4dbc6
Bugfix in AsyncAudioDeviceAlsa/AsyncAudioIO
...
Assertion for some sound boards in Async::Timer::setEnable due to the
AudioDeviceAlsa::samplesToWrite function returning a negative value.
2017-09-21 21:07:58 +02:00
Tobias Blomberg
2ae2511b76
Fix memory leak in Async::AudioIO
2015-11-15 10:44:06 +01:00
Tobias Blomberg
7dffed94cb
- First checkin of the libsigc++-2.0 patch contributed by Felix.
...
Everything compiles. Not tested much yet but it seems to work just fine.
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/branches/sigc++2@2060 f8843c6b-282e-0410-804b-c0d5895947d2
2011-08-28 22:24:14 +00:00
Tobias Blomberg
f79f238989
Did a couple of smaller changes:
...
- The sample_rate variable was not properly initialized in the AudioIO
class
- The m_tx object was not deleted in the Logic::cleanup method.
- Changed a couple of printouts.
- New default audio device in EchoLinkQsoTest.
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@1984 f8843c6b-282e-0410-804b-c0d5895947d2
2011-05-14 07:27:24 +00:00
Tobias Blomberg
57f340fa1d
Audio (mostly Alsa) bug fixes. Patch from Steve / DH1DM.
...
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@1915 f8843c6b-282e-0410-804b-c0d5895947d2
2011-01-06 13:36:03 +00:00
Tobias Blomberg
c02ec389ee
Merged the alsa task branch into trunk.
...
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@1755 f8843c6b-282e-0410-804b-c0d5895947d2
2010-02-21 20:21:23 +00:00
Tobias Blomberg
3d6ae29881
Now compiles cleanly under Fedora 11.
...
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@1607 f8843c6b-282e-0410-804b-c0d5895947d2
2009-06-29 20:30:38 +00:00
Tobias Blomberg
9a7fa5e77a
Now it is allowed to write to an AudioIO sink even if it's not opened for
...
writing. The written audio will just be thrown away.
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@1541 f8843c6b-282e-0410-804b-c0d5895947d2
2009-03-03 22:30:40 +00:00
Tobias Blomberg
a90c03ee03
Merged branch sample_rate_16k into trunk revisions 1334:1437.
...
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@1439 f8843c6b-282e-0410-804b-c0d5895947d2
2008-08-26 19:35:08 +00:00
Tobias Blomberg
1886335bb2
Async::AudioIO does not depend on SigC anymore.
...
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@1403 f8843c6b-282e-0410-804b-c0d5895947d2
2008-07-23 11:45:24 +00:00
Tobias Blomberg
47b498ea58
New class function: Async::AudioIO::blocksize.
...
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@1354 f8843c6b-282e-0410-804b-c0d5895947d2
2008-06-06 08:53:39 +00:00
Tobias Blomberg
11d2cabb3c
Moved the prebuffering from Async::AudioDevice to Async::AudioIO.
...
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@1349 f8843c6b-282e-0410-804b-c0d5895947d2
2008-06-02 19:57:02 +00:00
Tobias Blomberg
687844e70a
Hopefully this implementation of Async::AudioIO/Async::AudioDevice
...
work a little bit better.
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@1344 f8843c6b-282e-0410-804b-c0d5895947d2
2008-05-24 18:53:10 +00:00
Tobias Blomberg
e49bffc77a
Replaced the SampleFifo class in the AudioIO class with an
...
AudioFifo/AudioReader combination instead.
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@1341 f8843c6b-282e-0410-804b-c0d5895947d2
2008-05-24 09:42:50 +00:00
Tobias Blomberg
0c006b1cd7
Now possible to set the number of channels used in Async::AudioDevice.
...
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@1326 f8843c6b-282e-0410-804b-c0d5895947d2
2008-05-18 12:46:21 +00:00
Tobias Blomberg
29ae4c4bd3
Now possible to set a couple of sound card parameters that was previously
...
hard coded (sampling rate, block size, buffer size).
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@1245 f8843c6b-282e-0410-804b-c0d5895947d2
2008-04-09 20:56:32 +00:00
Tobias Blomberg
9517067fd6
Added support for multirate (decimation/interpolation).
...
Sampling frequency now is 48kHz.
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@1240 f8843c6b-282e-0410-804b-c0d5895947d2
2008-04-06 18:51:48 +00:00
Tobias Blomberg
884ac029d1
Implemented usage of left/right stereo channels as two mono channels.
...
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@1228 f8843c6b-282e-0410-804b-c0d5895947d2
2008-03-30 16:39:41 +00:00
Tobias Blomberg
1148571221
Merged trunk with branch audio_pipe_port from revision 1128 to 1217.
...
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@1218 f8843c6b-282e-0410-804b-c0d5895947d2
2008-03-20 08:28:38 +00:00
Tobias Blomberg
8ac3b9eb24
Moved on from libsigc++ 1.0 to 1.2. SvxLink will no longer compile with
...
version 1.0.
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@953 f8843c6b-282e-0410-804b-c0d5895947d2
2006-11-07 20:44:20 +00:00
Tobias Blomberg
1409b5389f
Created a new audio-lib where all the audio related classes have been put.
...
git-svn-id: svn://svn.code.sf.net/p/svxlink/svn/trunk@880 f8843c6b-282e-0410-804b-c0d5895947d2
2006-05-14 10:33:43 +00:00