mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
spa/buffer: rename SPA_MEMBER to SPA_PTROFF
SPA_MEMBER is misleading, all we're doing here is pointer+offset and a type-casting the result. Rename to SPA_PTROFF which is more expressive (and has the same number of characters so we don't need to re-indent).
This commit is contained in:
parent
e598d0a422
commit
2405f0942b
92 changed files with 248 additions and 227 deletions
|
|
@ -259,7 +259,7 @@ snd_pcm_pipewire_process(snd_pcm_pipewire_t *pw, struct pw_buffer *b,
|
|||
d[0].chunk->size = want * pw->stride;
|
||||
d[0].chunk->offset = 0;
|
||||
}
|
||||
ptr = SPA_MEMBER(d[0].data, d[0].chunk->offset, void);
|
||||
ptr = SPA_PTROFF(d[0].data, d[0].chunk->offset, void);
|
||||
for (channel = 0; channel < io->channels; channel++) {
|
||||
pwareas[channel].addr = ptr;
|
||||
pwareas[channel].first = channel * pw->sample_bits;
|
||||
|
|
@ -271,7 +271,7 @@ snd_pcm_pipewire_process(snd_pcm_pipewire_t *pw, struct pw_buffer *b,
|
|||
d[channel].chunk->size = want * pw->stride;
|
||||
d[channel].chunk->offset = 0;
|
||||
}
|
||||
ptr = SPA_MEMBER(d[channel].data, d[channel].chunk->offset, void);
|
||||
ptr = SPA_PTROFF(d[channel].data, d[channel].chunk->offset, void);
|
||||
pwareas[channel].addr = ptr;
|
||||
pwareas[channel].first = 0;
|
||||
pwareas[channel].step = pw->sample_bits;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue