mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-09 14:38:42 +00:00
8211962: Implicit narrowing in MacOSX java.desktop jsound
Cast value to needed type. Reviewed-by: serb
This commit is contained in:
parent
2d7d9b8380
commit
47e7b141c0
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -609,7 +609,7 @@ void PORT_GetControls(void* id, INT32 portIndex, PortControlCreator* creator) {
|
||||
// get the channel name
|
||||
char *channelName;
|
||||
CFStringRef cfname = NULL;
|
||||
const AudioObjectPropertyAddress address = {kAudioObjectPropertyElementName, port->scope, ch};
|
||||
const AudioObjectPropertyAddress address = {kAudioObjectPropertyElementName, port->scope, (unsigned)ch};
|
||||
UInt32 size = sizeof(cfname);
|
||||
OSStatus err = AudioObjectGetPropertyData(mixer->deviceID, &address, 0, NULL, &size, &cfname);
|
||||
if (err == noErr) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user