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