repo.or.cz
/
Rockbox.git
/
search
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
first
·
prev
·
next
Add callbacks to notify users of the buffering API when the buffer is low
2007-10-25
Ni
c
ola
s
Pen
n
equin
A
d
d
callbacks to notify u
s
ers
o
f
t
he
b
uffer
i
ng API
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as P
e
nnequin
Remo
v
e
t
he "buffering" bool indica
t
o
r
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
ol
a
s
P
ennequin
M
a
ke the playl
i
st position be updated on
t
h
e
PC
M
t
r
ack
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
P
e
nnequin
S
o
lv
e
th
e
prog
r
ess
b
ar not being upd
a
ted
i
n the
las
t
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
Pen
n
equin
Cl
o
se partially buffered ha
n
dle
s
when changing tra
c
k
s
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Penne
q
ui
n
Make
the
a
u
d
io thread wa
i
t with a timeout even when
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s
Penn
e
quin
M
i
nor tweak
to the
a
udio
t
hre
a
d b
u
f
f
er f
i
lli
n
g logic
commit
|
commitdiff
|
tree
2007-10-25
N
icolas Pe
n
nequin
Incr
e
a
s
e MAX
T
HREADS
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
olas Pen
n
equin
Add the
"
buffering" statu
s
indi
c
ator
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Pen
n
equ
i
n
Remove s
o
me disabled
cod
e
from p
l
ayback
.
c
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
ennequin
Invalid
a
te han
d
le cache
on hand
l
e remov
a
l
commit
|
commitdiff
|
tree
2007-10-25
N
ic
o
las
P
ennequin
Ch
a
nge au
d
io_rele
a
s
e_tracks
(
) so that
i
t
e
nsures c
l
osing
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
e
nnequin
Better logic
i
n the buffering thre
a
d loop
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Pennequin
Turn
b
ufc
l
o
s
e into a q
u
eue event sender
t
o
ens
u
re
a
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Pro
t
ect
the lin
k
ed
list with a mute
x
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Some cl
e
anup/simplification and an added
comment
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pen
n
equin
Move the call to ata_sleep
(
) in fi
l
l_
b
uffer()
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as
Pennequin
N
o bufclosing of handles
after
t
rack change
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
la
s
Pennequin
Add a bit more debug
info
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
olas
P
ennequin
Reint
r
odu
c
e codec_advanc
e
_buff
e
r_count
e
rs()
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
l
as Pennequin
Do
n
't attempt
to buffer tra
c
ks if t
h
er
e
are no more
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Hide the
buffering
t
h
r
ead and queue inside
b
uffer
i
n
g
.
c
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
olas Pennequin
Revert
"
Replace yield_code
c
() with a c
a
ll to queue_wa
i
t_w_t
m
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penn
e
q
uin
S
ame as th
e
pre
v
ious
com
m
it but
with a diffe
r
ent
c
allback
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as Pen
n
e
q
uin
Check that metadata
i
s pr
e
sen
t
be
f
o
re calling ba
c
k
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Pe
n
nequin
10 ticks
i
s wa
y
too lon
g
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penne
q
uin
f
ilebu
f
_is_lowdata isn't needed anymore
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Re
p
lac
e
yi
e
l
d
_
c
o
dec() with
a
c
a
l
l to queue_w
a
it_w_tmo()
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Pennequi
n
Rebuf
f
er
after pl
a
ylis
t
changes
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Pen
n
equi
n
Ena
b
le and correct a
u
dio_invalidate_tr
a
cks
t
o make
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penneq
u
i
n
Line l
e
ngths
commit
|
commitdiff
|
tree
2007-10-25
N
i
c
o
las Pennequin
O
n
ly
a
ttemp
t
to f
i
ll the
b
uf
f
er i
f
it
n
e
e
ds to be filled
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as Pennequin
Free the
b
uffer more often when
t
here is less data
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Pe
n
nequin
Improved buf
f
er
use by filling when the disk i
s
ac
t
i
v
e
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pen
n
eq
u
in
The number of tracks for w
h
ich w
e
h
av
e
handles is one
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
icolas Pe
n
n
e
qu
i
n
Add
b
uffered_data() for later
use
commit
|
commitdiff
|
tree
2007-10-25
N
i
c
olas Pen
n
e
qu
i
n
D
ebug
s
cre
e
n for
t
he
b
u
ffering t
h
r
e
ad
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Make dir skip
p
in
g
work correctly and probably improve
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
codec_adv
a
nce_buff
e
r_callba
c
k: Remove
unused
cod
e
commit
|
commitdiff
|
tree
2007-10-25
N
i
c
olas Penne
q
uin
codec
_
se
e
k_buffer_cal
l
back: a
simple bufseek call is
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pen
n
e
quin
Make bufadvance rely on bu
f
seek instead of
duplicating
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequi
n
Correct bufse
e
k
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
S
o
me code documentat
i
on upd
a
tes
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
Pennequin
Rename fr
e
e_b
u
ffer() to
s
hrin
k
_handle
(
)
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pe
n
neq
u
in
audio_curren
t
_
track: Don
'
t use cur
t
r
a
ck_id
3
i
f
i
t's
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pen
n
equ
i
n
Fix
w
a
r
nin
g
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pe
n
nequin
Clear
s
tatic stru
c
ts
o
n sto
p
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Pe
n
n
e
q
u
i
n
Improve metadata use
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s Pennequin
Poin
t
er cosme
t
ic
ch
a
nge
s
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
Pennequin
Silen
c
e wa
r
nings o
n
col
d
fire
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s Pennequin
R
ename ge
t
ptr to b
u
fget
c
o
d
ec and make it ensure
the
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
ico
l
as Pennequin
bufopen
:
Immediate
l
y request
bu
f
f
e
r
i
n
g
fo
r
certai
n
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las
P
ennequi
n
Che
c
k f
o
r the ca
s
e when
no data i
s
ready and the
required
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
o
l
as P
e
nnequin
Revert "Simplify codec_reque
s
t_buffer_callb
a
c
k
()
"
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pen
n
equin
curtrack_id3
and
n
e
xttrack_id3
sho
u
l
d
b
e
s
t
atic
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
enne
q
u
in
A bi
t
of maintenance
commit
|
commitdiff
|
tree
2007-10-25
N
i
c
olas Penneq
u
in
S
i
mplify code
c
_request_buffer
_
callback()
commit
|
commitdiff
|
tree
2007-10-25
N
icolas Pennequin
Onl
y
ask once
for bufferin
g
, t
h
e
n wait fo
r
the data
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Fix bufread impl
e
mentat
i
on
.
Thi
s
fixes
p
roble
m
s with
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penne
q
u
i
n
Minor cle
a
nup
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las P
e
nnequin
Properly clear tr
a
ck info
commit
|
commitdiff
|
tree
2007-10-25
Nicolas P
e
n
nequin
res
e
t_handle(): Fix war
n
ing and make it
s
t
atic
commit
|
commitdiff
|
tree
2007-10-25
N
icolas Pennequin
Factor
out
t
he d
u
p
li
c
ate code from b
u
fad
v
a
n
ce
i
n
rebuffer_ha
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penneq
u
in
Implem
e
n
t
backw
a
rds
s
kipping by commpleting audio_r
e
buffer()
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penne
q
uin
Clear warnings and
m
o
re
c
leanup
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Pennequin
C
l
eanup
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as Penne
q
uin
Silence
t
he wa
r
ning fro
m
reset
_
hand
l
e
(
)
commit
|
commitdiff
|
tree
2007-10-25
Nicolas P
e
nnequ
i
n
audio_st
o
p_p
l
ayb
a
ck()
:
Rele
a
se
track handles BEFORE
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequi
n
See
k
ing wasn't actully quite correct: mak
e
i
t
seek
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Pennequin
Impleme
n
t
re
b
u
f
fering fo
r
seeking outside of buffered
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s Pennequin
Fix playback
resu
m
ing
commit
|
commitdiff
|
tree
2007-10-25
N
icolas Pennequin
Preve
n
t fi
l
e descripto
r
leakage or
o
veruse
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penne
q
u
in
c
odec_filebuf_callback: Setting copy_n to 0 was
a VERY
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pen
n
e
quin
Silen
c
e a
few
warnings
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
Penn
e
q
u
in
bufclose:
M
ak
e
sure the handle's file descriptor is
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
bufopen()
:
Don
'
t immediately bu
f
fer
c
ertain types of
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
codec_seek_b
u
f
f
er_callbac
k
(): Check whethe
r
it's
p
ossibl
e
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pe
n
nequin
U
ncomment a part
of aud
i
o_rebuffer() to m
a
ke rebu
f
fer
i
n
g
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las
P
enneq
u
i
n
Wh
e
n data can't w
r
ap,
s
t
art over at the
b
eginning of
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequi
n
Don't ask to b
u
f
fer tra
c
ks right afte
r
loading them
commit
|
commitdiff
|
tree
2007-10-25
N
icolas Penne
q
uin
Add
U
S
B c
o
nnection handling to the
b
uffe
r
ing
thre
a
d
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penneq
u
i
n
Fi
x
tracks being f
o
rgo
t
te
n
about when th
e
re was no
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
icolas
Pe
n
nequin
Im
p
r
ove yield
_
codec and use it bette
r
to make
a
u
dio
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Pen
n
equin
bufgetdata(): fix the ava
i
lable
vs
.
requir
e
d check
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penn
e
quin
F
i
x a stupid
bu
g
that caus
e
d some handles n
o
t to
b
e
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
icolas Penne
q
u
in
Introduce yie
l
d_c
o
dec
(
), si
m
ila
r
to
t
he original a
u
d
io_yield
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
i
colas Pennequin
Make the
t
arg
e
t behav
e
t
h
e
sam
e
as the si
m
(don't ca
r
e
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Trying
to make audio start playing fast
e
r
.
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as Pennequin
Fix
p
layback
stopping by closing all track handl
e
s
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as
P
ennequin
A few com
m
ent twe
a
ks
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
enn
e
q
u
in
Add a
test in audio_current_tr
a
c
k
()
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
D
o the
i
ni
t
ial populati
n
g of the stati
c
ID
3
structs
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penn
e
q
uin
Make
a
udio_re
a
d
_
n
e
x
t
_
metad
a
t
a a bit safer
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Mi
n
o
r
correction of a comment
commit
|
commitdiff
|
tree
2007-10-25
N
i
colas P
e
nnequ
i
n
Use id3_hid rather than taginfo_ready t
o
kno
w
if ID3
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
icolas Penn
e
quin
Request b
u
ffering
o
f t
h
e current
track if it is t
o
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pe
n
ne
q
uin
Add some s
y
nchronisation to preven
t
some de
a
d
locks
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Make basic see
k
ing actually work
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
olas
P
e
nnequin
Ad
d
close_track_handle
s
a
nd
r
eena
b
le audi
o
_clear_track_ent
r
i
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Release
data
for t
h
e
finished track
o
n
track
chang
e
.
commit
|
commitdiff
|
tree
next