Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
adfa13de
Commit
adfa13de
authored
Oct 13, 2005
by
jpbl
Browse files
we list devices now
parent
8d429f02
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/audio/audiolayer.cpp
View file @
adfa13de
...
...
@@ -38,6 +38,7 @@ AudioLayer::AudioLayer ()
,
_stream
(
NULL
)
{
portaudio
::
System
::
initialize
();
listDevices
();
}
// Destructor
...
...
@@ -57,6 +58,18 @@ AudioLayer::closeStream (void)
}
}
void
AudioLayer
::
listDevices
()
{
ost
::
MutexLock
guard
(
_mutex
);
portaudio
::
System
::
DeviceIterator
pos
=
portaudio
::
System
::
instance
().
devicesBegin
();
while
(
pos
!=
portaudio
::
System
::
instance
().
devicesEnd
())
{
_debug
(
"AudioLayer: Device (%d) %s
\n
"
,
pos
->
index
(),
pos
->
name
());
pos
++
;
}
}
void
AudioLayer
::
openDevice
(
int
index
)
{
...
...
src/audio/audiolayer.h
View file @
adfa13de
...
...
@@ -44,6 +44,7 @@ public:
AudioLayer
();
~
AudioLayer
(
void
);
void
listDevices
();
void
openDevice
(
int
);
void
startStream
(
void
);
void
stopStream
(
void
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment