1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-11 17:37:23 +00:00

ao_coreaudio: remove useless comments

This commit is contained in:
Stefano Pigozzi 2014-07-02 08:19:55 +02:00
parent 0ffbd05e99
commit d16e4b836a

View File

@ -31,8 +31,8 @@ static void audio_resume(struct ao *ao);
static void reset(struct ao *ao); static void reset(struct ao *ao);
struct priv { struct priv {
AudioDeviceID device; // selected device AudioDeviceID device;
AudioUnit audio_unit; // AudioUnit for lpcm output AudioUnit audio_unit;
bool paused; bool paused;
struct mp_ring *buffer; struct mp_ring *buffer;
@ -101,7 +101,7 @@ static int control(struct ao *ao, enum aocontrol cmd, void *arg)
return get_volume(ao, arg); return get_volume(ao, arg);
case AOCONTROL_SET_VOLUME: case AOCONTROL_SET_VOLUME:
return set_volume(ao, arg); return set_volume(ao, arg);
} // end switch }
return CONTROL_UNKNOWN; return CONTROL_UNKNOWN;
} }
@ -202,7 +202,6 @@ static bool init_audiounit(struct ao *ao, AudioStreamBasicDescription asbd)
err = AudioComponentInstanceNew(comp, &(p->audio_unit)); err = AudioComponentInstanceNew(comp, &(p->audio_unit));
CHECK_CA_ERROR("unable to open audio component"); CHECK_CA_ERROR("unable to open audio component");
// Initialize AudioUnit
err = AudioUnitInitialize(p->audio_unit); err = AudioUnitInitialize(p->audio_unit);
CHECK_CA_ERROR_L(coreaudio_error_component, CHECK_CA_ERROR_L(coreaudio_error_component,
"unable to initialize audio unit"); "unable to initialize audio unit");
@ -215,7 +214,6 @@ static bool init_audiounit(struct ao *ao, AudioStreamBasicDescription asbd)
CHECK_CA_ERROR_L(coreaudio_error_audiounit, CHECK_CA_ERROR_L(coreaudio_error_audiounit,
"unable to set the input format on the audio unit"); "unable to set the input format on the audio unit");
//Set the Current Device to the Default Output Unit.
err = AudioUnitSetProperty(p->audio_unit, err = AudioUnitSetProperty(p->audio_unit,
kAudioOutputUnitProperty_CurrentDevice, kAudioOutputUnitProperty_CurrentDevice,
kAudioUnitScope_Global, 0, &p->device, kAudioUnitScope_Global, 0, &p->device,