Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
56aebb88
Commit
56aebb88
authored
19 years ago
by
yanmorin
Browse files
Options
Downloads
Patches
Plain Diff
Test with other portaudio flags
parent
dd52e9d8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/audio/audiolayer.cpp
+2
-1
2 additions, 1 deletion
src/audio/audiolayer.cpp
src/audio/tonegenerator.cpp
+1
-1
1 addition, 1 deletion
src/audio/tonegenerator.cpp
with
3 additions
and
2 deletions
src/audio/audiolayer.cpp
+
2
−
1
View file @
56aebb88
...
...
@@ -86,10 +86,11 @@ AudioLayer::openDevice (int index)
2
,
portaudio
::
INT16
,
true
,
portaudio
::
System
::
instance
().
deviceByIndex
(
index
).
defaultLowInputLatency
(),
NULL
);
// we could put 0 instead of FRAME_PER_BUFFER to be variable
portaudio
::
StreamParameters
const
params
(
inParams
,
outParams
,
SAMPLING_RATE
,
FRAME_PER_BUFFER
,
paNoFlag
);
SAMPLING_RATE
,
paFramesPerBufferUnspecified
,
paPrimeOutputBuffersUsingStreamCallback
|
paNeverDropInput
/*
paNoFlag
*/
);
// Create (and open) a new Stream, using the AudioLayer::audioCallback
_stream
=
new
portaudio
::
MemFunCallbackStream
<
AudioLayer
>
(
params
,
...
...
This diff is collapsed.
Click to expand it.
src/audio/tonegenerator.cpp
+
1
−
1
View file @
56aebb88
...
...
@@ -60,7 +60,7 @@ ToneThread::run (void) {
// How long do 'size' samples play ?
// let's play it a bit smaller that it should to put more inside the buffer
unsigned
int
play_time
=
_size
/
(
SAMPLING_RATE
/
1000
);
unsigned
int
play_time
=
_size
/
(
SAMPLING_RATE
/
1000
)
-
20
;
ManagerImpl
&
manager
=
Manager
::
instance
();
manager
.
getAudioDriver
()
->
flushMain
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment