mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
Renamed samples in frames where appropriated. Added a compatibility hack for gcc 2.7.2.3
This commit is contained in:
parent
cc5730a49e
commit
9eb2c42445
15 changed files with 365 additions and 361 deletions
|
|
@ -179,8 +179,8 @@ int snd_pcm_channel_setup(snd_pcm_t *pcm, snd_pcm_channel_setup_t *setup)
|
|||
return err;
|
||||
memcpy(&chan->setup, setup, sizeof(*setup));
|
||||
chan->sample_width = snd_pcm_format_physical_width(setup->format.format);
|
||||
chan->bits_per_sample = chan->sample_width * setup->format.voices;
|
||||
chan->samples_per_frag = setup->frag_size * 8 / chan->bits_per_sample;
|
||||
chan->bits_per_frame = chan->sample_width * setup->format.voices;
|
||||
chan->frames_per_frag = setup->frag_size * 8 / chan->bits_per_frame;
|
||||
chan->valid_setup = 1;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue