mirror of
https://github.com/mpv-player/mpv
synced 2025-02-26 18:32:08 +00:00
ao_coreaudio_exclusive: do not set ao->bps
This field is basically deprecated or for convenience only, and this code doesn't need it.
This commit is contained in:
parent
597657110f
commit
d4ab91f016
@ -301,9 +301,6 @@ static int init(struct ao *ao)
|
||||
MP_WARN(ao, "stream has non-native byte order, output may fail\n");
|
||||
|
||||
ao->samplerate = p->stream_asbd.mSampleRate;
|
||||
ao->bps = ao->samplerate *
|
||||
(p->stream_asbd.mBytesPerPacket /
|
||||
p->stream_asbd.mFramesPerPacket);
|
||||
|
||||
uint32_t latency_frames = 0;
|
||||
uint32_t latency_properties[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user