-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS sound support 2 #1865
Closed
Closed
iOS sound support 2 #1865
Changes from 104 commits
Commits
Show all changes
108 commits
Select commit
Hold shift + click to select a range
d9abe62
iOS sound support. opus lib modified because of "Compile sources as" …
ngocdh 1c90af9
resolving merge
ngocdh 60fcdef
BOOL -> bool
ngocdh 9b9474f
Android built-in mic / external device
ngocdh ed1e28e
Update sound.h
ngocdh 4c4eb56
Update sound.cpp
ngocdh 444a820
Update clientdlg.cpp
ngocdh 36e7232
Update sound.cpp
ngocdh 4eaf3de
Update sound.cpp
ngocdh 7660feb
Update clientdlg.cpp
ngocdh 6e4d23e
Update clientsettingsdlg.cpp
ngocdh e88bf3b
Update client.cpp
ngocdh 5d5b757
Update client.cpp
ngocdh c7b9cac
Update clientdlg.cpp
ngocdh 84c49dd
Update clientsettingsdlg.cpp
ngocdh 6fc18e2
Update chatdlg.cpp
ngocdh 99c5e58
Update clientdlg.cpp
ngocdh f36b806
Update chatdlg.cpp
ngocdh 9ab1fa7
Update clientsettingsdlg.cpp
ngocdh d7d0611
Update clientdlg.h
ngocdh 6e436c4
Update client.cpp
ngocdh 4d16da0
Update sound.cpp
ngocdh 133feb8
Update sound.cpp
ngocdh 4ad5680
Update sound.h
ngocdh 16f2284
Update sound.cpp
ngocdh ef748a7
Update clientdlg.cpp
ngocdh 4d189e7
Update client.h
ngocdh f853767
Update sound.cpp
ngocdh 68f7881
Update sound.h
ngocdh e5f4372
Update clientdlg.cpp
ngocdh faf9fb2
Update sound.h
ngocdh 45e217c
Update sound.h
ngocdh 108c6ab
Update sound.h
ngocdh 3adc7f8
Update sound.h
ngocdh bced568
Update clientdlg.cpp
ngocdh 055fbe3
Update client.h
ngocdh 3167c95
Update sound.cpp
ngocdh 3b5c530
Update sound.cpp
ngocdh 4c4de4d
Update sound.cpp
ngocdh 55dfa4c
test device 9
ngocdh 64bf820
android build only
ngocdh b918af5
Revert changes in opus, remove Foundation.h, remove unused BOOL. Add …
ngocdh 2eb2754
Merge remote-tracking branch 'refs/remotes/origin/master'
ngocdh 022a004
Revert "android build only"
ngocdh 726060a
resolving conflict in src/clientdlg.h (add SendTabChange)
ngocdh 75bf59c
Merge remote-tracking branch 'refs/remotes/truemaster/master'
ngocdh d526b1b
trying setAudioApi AAudio
ngocdh 8877002
Update sound.cpp
ngocdh 6d2a71e
dev 9 aaudio
ngocdh b6b2ebf
Update sound.cpp
ngocdh 27ffe92
check getDeviceId() instead of oboe::Result::OK
ngocdh 6ee7197
AAudio 7 only when builtinmic=true
ngocdh 0465a5d
dev 20 for google pixel 5
ngocdh 2517706
Merge pull request #2 from ngocdh/master
ngocdh b7f8b3d
Add input device id text box
ngocdh 9c2d4ab
void OnBuiltInMicIdChanged();
ngocdh 56ac5e3
edtBuiltInMicId and OnBuiltInMicIdChanged
ngocdh 8556f81
iBuiltInMicId
ngocdh 284518f
SetInputDeviceId iBuiltInMicId
ngocdh 3bcdba8
iBuiltInMicId - SetInputDeviceId ( const int deviceid )
ngocdh 81ee2d5
SetInputDeviceId ( int deviceid );
ngocdh 742e7a1
void CSound::SetInputDeviceId ( int deviceid )
ngocdh 5726ecb
SetInputDeviceId( int deviceid );
ngocdh 7fdb2d6
Update sound.mm
ngocdh 0846c5b
setBuiltinMic unsetBuiltinMic
ngocdh ea4614e
auto dev
ngocdh f2d3302
Update sound.h
ngocdh 9e3a60a
SetInputDeviceId ( int deviceid );
ngocdh 1372fb6
revert change (committed by error)
ngocdh 94961b3
Merge branch 'master' into mobile-builtinmic
ngocdh e76929c
remove SetBuiltinMic
ngocdh 7527ade
SetBuiltInMicId GetBuiltInMicId
ngocdh 1dc63a0
GetBuiltInMicId instead of direct access
ngocdh 83311ab
pClient->SetBuiltInMicId
ngocdh 5e2dbb2
close menu action
ngocdh 276ae3b
Device id text box for Android only
ngocdh dd29299
different close menu for ios and android
ngocdh 2daaf6a
experimental textbox for Built-in Mic deviceid input - Android only (…
ngocdh e26aa4a
Merge remote-tracking branch 'refs/remotes/truemaster/master'
ngocdh 4ca2e30
Client.cpp: iOS 4 sound inits down to 1 <- reduce launch time
ngocdh 3cbb2c4
iOS: Sound inits down to 1 from 36
ngocdh ab49a72
Sound inits back to 9 times (not 9*4=36) until a way to check if app …
ngocdh 474e0b8
Remove unused libs to speed up launch
ngocdh 92010f5
iOS: remove unused libs
ngocdh eea2908
autobuild: +x bit for mac or else check will fail
ngocdh 4d61784
autobuild mac artifacts +x
ngocdh c5edb9d
Fix connect button crash
ngocdh cc13fc6
really fix connect crash?
ngocdh cb53bea
connect crash
ngocdh 114460e
Temporary crash fix, TODO: reopen socket when SIGPIPE
ngocdh 99a6230
Fix iOS return-from-idle crash: reopen socket
ngocdh ab02049
Merge master into master
ngocdh b1a5b51
update as requested
ngocdh 73c677f
remove qm changes and add ngocdh as contributor in about
ngocdh 775730b
Merge branch 'iossound2'
ngocdh afe07aa
style
ngocdh 37526fa
Merge branch 'master' into ngocdhmaster2
ngocdh c898634
removed unwanted directory
ngocdh 88fb1f9
remove unwanted file
ngocdh b008230
clang
ngocdh c137b72
style
ngocdh 4987fbd
style
ngocdh 0b1ec5a
style
ngocdh 86f82ac
style
ngocdh 89ead4f
Merge remote-tracking branch 'refs/remotes/origin/ngocdhmaster2'
ngocdh 22931c5
style
ngocdh 45d854c
Merge remote-tracking branch 'refs/remotes/origin/ngocdhmaster2'
ngocdh 4de56d2
clang-format -style=file -i *
ngocdh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Copyright (c) 2004-2020 | ||
* | ||
* Author(s): | ||
* ann0see based on code from Volker Fischer | ||
* ann0see and ngocdh based on code from Volker Fischer | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and the copyright date could do with updating. |
||
* | ||
****************************************************************************** | ||
* | ||
|
@@ -23,13 +23,12 @@ | |
\******************************************************************************/ | ||
|
||
#pragma once | ||
#include <CoreMIDI/CoreMIDI.h> | ||
#include <QMutex> | ||
#include <QMessageBox> | ||
#include "soundbase.h" | ||
#include "global.h" | ||
|
||
/* Classes ********************************************************************/ | ||
#import <AudioToolbox/AudioToolbox.h> | ||
|
||
class CSound : public CSoundBase | ||
{ | ||
Q_OBJECT | ||
|
@@ -44,64 +43,20 @@ class CSound : public CSoundBase | |
virtual int Init ( const int iNewPrefMonoBufferSize ); | ||
virtual void Start(); | ||
virtual void Stop(); | ||
virtual void processBufferList ( AudioBufferList*, CSound* ); | ||
virtual void SetInputDeviceId ( int deviceid ); | ||
|
||
// channel selection | ||
virtual int GetNumInputChannels() { return iNumInChanPlusAddChan; } | ||
virtual QString GetInputChannelName ( const int iDiD ) { return sChannelNamesInput[iDiD]; } | ||
virtual void SetLeftInputChannel ( const int iNewChan ); | ||
virtual void SetRightInputChannel ( const int iNewChan ); | ||
virtual int GetLeftInputChannel() { return iSelInputLeftChannel; } | ||
virtual int GetRightInputChannel() { return iSelInputRightChannel; } | ||
|
||
virtual int GetNumOutputChannels() { return iNumOutChan; } | ||
virtual QString GetOutputChannelName ( const int iDiD ) { return sChannelNamesOutput[iDiD]; } | ||
virtual void SetLeftOutputChannel ( const int iNewChan ); | ||
virtual void SetRightOutputChannel ( const int iNewChan ); | ||
virtual int GetLeftOutputChannel() { return iSelOutputLeftChannel; } | ||
virtual int GetRightOutputChannel() { return iSelOutputRightChannel; } | ||
AudioUnit audioUnit; | ||
|
||
// these variables/functions should be protected but cannot since we want | ||
// to access them from the callback function | ||
CVector<short> vecsTmpAudioSndCrdStereo; | ||
int iCoreAudioBufferSizeMono; | ||
int iCoreAudioBufferSizeStereo; | ||
long lCurDev; | ||
int iNumInChan; | ||
int iNumInChanPlusAddChan; // includes additional "added" channels | ||
int iNumOutChan; | ||
int iSelInputLeftChannel; | ||
int iSelInputRightChannel; | ||
int iSelOutputLeftChannel; | ||
int iSelOutputRightChannel; | ||
int iSelInBufferLeft; | ||
int iSelInBufferRight; | ||
int iSelInInterlChLeft; | ||
int iSelInInterlChRight; | ||
int iSelAddInBufferLeft; | ||
int iSelAddInBufferRight; | ||
int iSelAddInInterlChLeft; | ||
int iSelAddInInterlChRight; | ||
int iSelOutBufferLeft; | ||
int iSelOutBufferRight; | ||
int iSelOutInterlChLeft; | ||
int iSelOutInterlChRight; | ||
CVector<int> vecNumInBufChan; | ||
CVector<int> vecNumOutBufChan; | ||
bool isInitialized; | ||
|
||
protected: | ||
virtual QString LoadAndInitializeDriver ( QString strDriverName, bool ); | ||
|
||
QString CheckDeviceCapabilities ( const int iDriverIdx ); | ||
void GetAvailableInOutDevices(); | ||
|
||
static void callbackMIDI ( const MIDIPacketList* pktlist, void* refCon, void* ); | ||
|
||
// AVAudioSession audioSession; | ||
|
||
MIDIPortRef midiInPortRef; | ||
|
||
QString sChannelNamesInput[MAX_NUM_IN_OUT_CHANNELS]; | ||
QString sChannelNamesOutput[MAX_NUM_IN_OUT_CHANNELS]; | ||
|
||
QMutex Mutex; | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this android file changing in an iOS change?