Fixed one coding style violation and applied part of patch of ticket #5892,

which includes fixes to compile Haiku on clang.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36906 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2010-05-23 12:27:39 +00:00
parent 59eae96d68
commit a8ee8b8f1c

View File

@ -416,18 +416,18 @@ RecorderWindow::InitWindow()
// Input selection lists all available physical inputs that produce
// buffers with B_MEDIA_RAW_AUDIO format data.
popup = new BPopUpMenu("Input");
int max_input_count = 64;
dormant_node_info dni[max_input_count];
const int maxInputCount = 64;
dormant_node_info dni[maxInputCount];
int32 real_count = max_input_count;
int32 real_count = maxInputCount;
media_format output_format;
output_format.type = B_MEDIA_RAW_AUDIO;
output_format.u.raw_audio = media_raw_audio_format::wildcard;
error = fRoster->GetDormantNodes(dni, &real_count, 0, &output_format,
0, B_BUFFER_PRODUCER | B_PHYSICAL_INPUT);
if (real_count > max_input_count) {
WINDOW((stderr, "dropped %ld inputs\n", real_count - max_input_count));
real_count = max_input_count;
if (real_count > maxInputCount) {
WINDOW((stderr, "dropped %ld inputs\n", real_count - maxInputCount));
real_count = maxInputCount;
}
char selected_name[B_MEDIA_NAME_LENGTH] = "Default input";
BMessage * msg;