Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TPF
jack2
Commits
3b666ee4
Commit
3b666ee4
authored
Feb 20, 2012
by
Stephane Letz
Browse files
Fix PortAudioDevices::~PortAudioDevices.
parent
2c6ba8dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
windows/portaudio/JackPortAudioDevices.cpp
View file @
3b666ee4
...
...
@@ -46,8 +46,7 @@ PortAudioDevices::PortAudioDevices()
PortAudioDevices
::~
PortAudioDevices
()
{
// Desactivate for now: crash the server..
//Pa_Terminate();
Pa_Terminate
();
delete
[]
fDeviceInfo
;
delete
[]
fHostName
;
...
...
@@ -99,19 +98,19 @@ string PortAudioDevices::GetFullName(std::string hostname, std::string devicenam
}
PaDeviceInfo
*
PortAudioDevices
::
GetDeviceFromFullName
(
string
fullname
,
PaDeviceIndex
&
id
,
bool
isInput
)
{
{
PaDeviceInfo
*
ret
=
NULL
;
//no driver to find
if
(
fullname
.
size
()
==
0
)
{
if
(
fullname
.
size
()
==
0
)
{
return
NULL
;
}
//first get host and device names from fullname
string
::
size_type
separator
=
fullname
.
find
(
"::"
,
0
);
string
::
size_type
separator
=
fullname
.
find
(
"::"
,
0
);
if
(
separator
==
string
::
npos
)
{
if
(
separator
==
string
::
npos
)
{
return
NULL
;
}
}
char
*
hostname
=
(
char
*
)
malloc
(
separator
+
9
);
fill_n
(
hostname
,
separator
+
9
,
0
);
fullname
.
copy
(
hostname
,
separator
);
...
...
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