output/osx: don't use C99 designated initializers
Fixes `-Wpedantic`.
This commit is contained in:
		@@ -197,9 +197,9 @@ OSXOutput::GetVolume()
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	Float32 vol;
 | 
						Float32 vol;
 | 
				
			||||||
	AudioObjectPropertyAddress aopa = {
 | 
						AudioObjectPropertyAddress aopa = {
 | 
				
			||||||
		.mSelector	= kAudioHardwareServiceDeviceProperty_VirtualMasterVolume,
 | 
							kAudioHardwareServiceDeviceProperty_VirtualMasterVolume,
 | 
				
			||||||
		.mScope		= kAudioObjectPropertyScopeOutput,
 | 
							kAudioObjectPropertyScopeOutput,
 | 
				
			||||||
		.mElement	= kAudioObjectPropertyElementMaster,
 | 
							kAudioObjectPropertyElementMaster,
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
	UInt32 size = sizeof(vol);
 | 
						UInt32 size = sizeof(vol);
 | 
				
			||||||
	OSStatus status = AudioObjectGetPropertyData(dev_id,
 | 
						OSStatus status = AudioObjectGetPropertyData(dev_id,
 | 
				
			||||||
@@ -223,9 +223,9 @@ OSXOutput::SetVolume(unsigned new_volume)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	Float32 vol = new_volume / 100.0;
 | 
						Float32 vol = new_volume / 100.0;
 | 
				
			||||||
	AudioObjectPropertyAddress aopa = {
 | 
						AudioObjectPropertyAddress aopa = {
 | 
				
			||||||
		.mSelector	= kAudioHardwareServiceDeviceProperty_VirtualMasterVolume,
 | 
							kAudioHardwareServiceDeviceProperty_VirtualMasterVolume,
 | 
				
			||||||
		.mScope		= kAudioObjectPropertyScopeOutput,
 | 
							kAudioObjectPropertyScopeOutput,
 | 
				
			||||||
		.mElement	= kAudioObjectPropertyElementMaster
 | 
							kAudioObjectPropertyElementMaster
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
	UInt32 size = sizeof(vol);
 | 
						UInt32 size = sizeof(vol);
 | 
				
			||||||
	OSStatus status = AudioObjectSetPropertyData(dev_id,
 | 
						OSStatus status = AudioObjectSetPropertyData(dev_id,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user