mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
- fixed the type punning (compilation warnings with the recent GCC).
This commit is contained in:
parent
7a5a9f018c
commit
08874160c8
3 changed files with 37 additions and 28 deletions
|
|
@ -787,3 +787,15 @@ int snd_pcm_hw_open_fd(snd_pcm_t **pcmp, const char *name, int fd, int mmap_emul
|
|||
(1U << SND_PCM_FORMAT_FLOAT_BE) | \
|
||||
(1U << SND_PCM_FORMAT_FLOAT64_LE) | \
|
||||
(1U << SND_PCM_FORMAT_FLOAT64_BE)) }
|
||||
|
||||
|
||||
typedef union snd_tmp_float {
|
||||
float f;
|
||||
int32_t i;
|
||||
} snd_tmp_float_t;
|
||||
|
||||
typedef union snd_tmp_double {
|
||||
double d;
|
||||
int64_t l;
|
||||
} snd_tmp_double_t;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue