annotate loader/ldt_keeper.h @ 25195:1aec672af2d2
Fix ao_null with float samples
ao_null accepts float input, but the code calculating ao_data.bps only
checked for 1-byte formats and used samplesize 2 for everything else.
Because ao_null uses the bps value in its timing calculations this
effectively made "playback" advance at half the correct speed.
Fixed by calculating samplesize with af_fmt2bits() instead.
author |
uau |
date |
Sat, 01 Dec 2007 05:17:08 +0000 |
parents |
2de480457872 |
children |
a8ea87c71d18 |
rev |
line source |
2067
|
1 #ifndef LDT_KEEPER_H
|
|
2 #define LDT_KEEPER_H
|
|
3
|
|
4 #ifdef __cplusplus
|
|
5 extern "C"
|
|
6 {
|
|
7 #endif
|
7386
|
8
|
|
9 typedef struct {
|
|
10 void* fs_seg;
|
|
11 char* prev_struct;
|
|
12 } ldt_fs_t;
|
|
13
|
2067
|
14 void Setup_FS_Segment(void);
|
7386
|
15 ldt_fs_t* Setup_LDT_Keeper(void);
|
|
16 void Restore_LDT_Keeper(ldt_fs_t* ldt_fs);
|
2067
|
17 #ifdef __cplusplus
|
|
18 }
|
|
19 #endif
|
|
20
|
|
21 #endif /* LDT_KEEPER_H */
|