|  | @@ -99,17 +99,19 @@ string PortAudioDevices::GetFullName(std::string hostname, std::string devicenam | 
														
													
														
															
																|  |  | } |  |  | } | 
														
													
														
															
																|  |  | 
 |  |  | 
 | 
														
													
														
															
																|  |  | PaDeviceInfo* PortAudioDevices::GetDeviceFromFullName (string fullname, PaDeviceIndex& id, bool isInput) |  |  | PaDeviceInfo* PortAudioDevices::GetDeviceFromFullName (string fullname, PaDeviceIndex& id, bool isInput) | 
														
													
														
															
																|  |  | { |  |  |  | 
														
													
														
															
																|  |  |  |  |  | { | 
														
													
														
															
																|  |  | PaDeviceInfo* ret = NULL; |  |  | PaDeviceInfo* ret = NULL; | 
														
													
														
															
																|  |  | //no driver to find |  |  | //no driver to find | 
														
													
														
															
																|  |  | if (fullname.size() == 0) { |  |  |  | 
														
													
														
															
																|  |  |  |  |  | if (fullname.size() == 0) { | 
														
													
														
															
																|  |  | return NULL; |  |  | return NULL; | 
														
													
														
															
																|  |  | } |  |  | } | 
														
													
														
															
																|  |  | //first get host and device names from fullname |  |  | //first get host and device names from fullname | 
														
													
														
															
																|  |  | string::size_type separator = fullname.find ("::", 0); |  |  |  | 
														
													
														
															
																|  |  | if (separator == 0) { |  |  |  | 
														
													
														
															
																|  |  |  |  |  | string::size_type separator = fullname.find("::", 0); | 
														
													
														
															
																|  |  |  |  |  | 
 | 
														
													
														
															
																|  |  |  |  |  | if (separator == string::npos) { | 
														
													
														
															
																|  |  | return NULL; |  |  | return NULL; | 
														
													
														
															
																|  |  | } |  |  |  | 
														
													
														
															
																|  |  |  |  |  | } | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  | char* hostname = (char*)malloc(separator + 9); |  |  | char* hostname = (char*)malloc(separator + 9); | 
														
													
														
															
																|  |  | fill_n (hostname, separator + 9, 0); |  |  | fill_n (hostname, separator + 9, 0); | 
														
													
														
															
																|  |  | fullname.copy (hostname, separator); |  |  | fullname.copy (hostname, separator); | 
														
													
												
													
														
															
																|  | 
 |