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
Close partially buffered handles when changing tracks
2007-10-25
Nicol
a
s Penneq
u
in
Clos
e
pa
r
tially buffered han
d
les w
h
e
n
changing tr
a
cks
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
la
s
Pennequi
n
M
ake th
e
audio thread wait w
i
th a tim
e
ou
t
even
when
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pen
n
equin
Minor t
w
e
ak to the a
u
dio thread buf
f
er
filling logic
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
I
ncr
e
ase MAXTHREA
D
S
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Add the "buffe
r
ing
"
status indic
a
tor
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
olas Penne
q
uin
Remove s
o
me disabled code from playback
.
c
commit
|
commitdiff
|
tree
2007-10-25
N
i
colas
P
e
n
n
equin
Invalidate handle cache on ha
n
d
le remova
l
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s Penne
q
uin
Cha
n
ge
a
udio_release_tra
c
k
s
(
)
so that
i
t ensur
e
s closing
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
icolas Pennequin
Better
l
og
i
c in the buffering thread lo
o
p
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
a
s Pennequin
Turn b
u
f
close i
n
to a queue event sender to ens
u
re
a
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Pr
o
t
ect the linked list
with a mutex
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Some cleanup/simplification and an added
commen
t
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Pennequin
Mo
v
e the
c
all to a
t
a_sleep() in fill
_
buffer()
commit
|
commitdiff
|
tree
2007-10-25
N
icolas Pennequin
No bufcl
o
sing of
handles
af
t
e
r track cha
n
ge
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
a
s
Pennequin
Add a bit more debug info
commit
|
commitdiff
|
tree
2007-10-25
N
i
c
olas Pennequin
R
e
introduce codec_advance_buffer_coun
t
e
r
s()
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Don't attem
p
t to buffer tracks if there are no
more
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Pennequin
Hi
d
e the buf
f
ering thread
a
n
d queue in
s
ide b
u
ffering
.
c
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s
Pen
n
e
q
uin
R
evert "Replace yield_codec() with a
c
all to queue_wait_w_tm
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s Pe
n
nequin
Sa
m
e as the previou
s
commi
t
but wi
t
h a dif
f
erent ca
l
lbac
k
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Check that
metada
t
a
is
p
r
esent b
e
f
o
r
e
c
alling back
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
10 ticks is way too lo
n
g
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penn
e
quin
f
ilebuf_i
s
_lowdata isn't
n
e
e
d
ed anymore
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as Penn
e
quin
Replace yield
_
codec() w
i
th a call to queu
e
_wait
_
w_tmo()
commit
|
commitdiff
|
tree
2007-10-25
N
i
cola
s
P
e
nnequin
Re
b
uffer after play
l
ist
c
h
a
n
g
es
commit
|
commitdiff
|
tree
2007-10-25
N
icolas
P
ennequin
En
a
b
le and
correct au
d
io_invalidate
_
tracks
t
o make
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penneq
u
i
n
Line lengths
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Penneq
u
in
O
nly attem
p
t
t
o fill the buffer if it needs to be f
i
l
led
commit
|
commitdiff
|
tree
2007-10-25
N
i
colas Pe
n
nequin
Free th
e
buffe
r
more
often when there is less
d
ata
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequi
n
I
m
pr
o
v
e
d buffer use by filling when
the dis
k
is active
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
i
co
l
a
s Pen
n
e
q
uin
T
he number of tra
c
k
s
for wh
i
ch we have handl
e
s is
one
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Add buffered
_
data(
)
for later us
e
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
olas
P
ennequin
Debug screen for
t
he buffering thread
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Pennequin
M
ake dir
s
kipp
i
n
g
wor
k
correct
l
y
and pr
o
bab
l
y improve
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
P
en
n
equi
n
codec_adva
n
ce
_
buffer_callback: Rem
o
v
e
u
n
used cod
e
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
codec_seek_
b
uffe
r
_cal
l
b
a
c
k: a simple bufseek
c
a
l
l
i
s
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
icolas Penne
q
uin
Make bufad
v
ance
rely
o
n
buf
s
eek in
s
t
e
ad of duplicating
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penne
q
ui
n
C
orrect bufse
e
k
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
olas Pennequ
i
n
Some co
d
e documentation updates
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pe
n
nequi
n
Rename f
r
ee_buffer
(
) to shrink
_
handle
(
)
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Pennequin
audio_curr
e
nt_tr
a
ck: Don't
u
se curtrack_id3 if it's
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
l
a
s Pennequin
Fix warning
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pe
n
nequin
Clear st
a
tic structs on
s
top
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pe
n
ne
q
uin
I
m
prove me
t
adata us
e
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Poin
t
er
cosmetic changes
commit
|
commitdiff
|
tree
2007-10-25
N
i
co
l
as Penn
e
quin
Silence wa
r
nings on coldfire
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
R
ename getp
t
r to bufgetcodec
and ma
k
e it e
n
s
u
re the
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penne
q
u
i
n
b
u
f
op
e
n: Im
m
ediate
l
y req
u
e
st b
u
f
fering for certain
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pen
n
equin
Chec
k
for
th
e
case when no data
is r
e
ady and the r
e
quired
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Revert "Simplify codec_request
_
buffer_callback()"
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Penn
e
q
uin
curtrack_id
3
and nexttrack_id3 sho
u
ld be static
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Penn
e
quin
A
bit of mai
n
tenance
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Simpl
i
fy codec_req
u
est_buffer_callback()
commit
|
commitdiff
|
tree
2007-10-25
N
icolas P
e
nneq
u
in
Only
a
sk
o
nce for buf
f
e
ring, then wait for the data
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Fi
x
bufre
a
d imp
l
ementati
o
n
.
This f
i
xes problems wi
t
h
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Minor cleanup
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
enne
q
uin
Properly
clear
t
rack
i
nfo
commit
|
commitdiff
|
tree
2007-10-25
N
icola
s
Penn
e
quin
reset
_
h
a
ndle(): Fix
w
arning
a
nd
make it stati
c
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
l
a
s Pennequin
Fac
t
or out
t
he d
u
p
l
icate code
f
rom bu
f
a
d
v
a
nce in rebuffer_ha
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Implemen
t
backw
a
rds skipp
i
ng by commpleting audio_re
b
u
f
fer()
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s
P
en
n
equin
Clear warnin
g
s an
d
more cleanup
commit
|
commitdiff
|
tree
2007-10-25
N
icolas Pennequin
C
l
eanup
commit
|
commitdiff
|
tree
2007-10-25
N
i
colas P
e
nnequin
Silence the warning from reset_handl
e
()
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
l
a
s Pennequin
audio
_
stop_playbac
k
(): Release track h
a
n
d
les BEF
O
RE
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pen
n
eq
u
in
Seeking was
n
't act
u
lly quite correct: make
i
t
seek
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as
P
enne
q
ui
n
Implement rebuffering for seeking outside of
b
uffered
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Pennequin
Fix playback resumin
g
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequi
n
Preve
n
t fi
l
e
d
escript
o
r leakage or ov
e
ruse
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequ
i
n
co
d
ec_f
i
lebuf_callb
a
ck: Setting c
o
py_n to 0 was a
VERY
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Sil
e
nce
a
few
wa
r
nings
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las
P
enn
e
q
uin
b
u
fclose: Make su
r
e the
h
andle's file descri
p
tor
is
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
i
colas Penn
e
quin
bufopen(): Don't
i
mmediately
b
uf
f
er certain types of
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las
P
enne
q
uin
codec_seek
_
buffer_callback(): Check
whether it'
s
possible
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pen
n
equin
Unc
o
mment a part of audio_rebuf
f
er() to
m
ak
e
rebuffering
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
When data c
a
n'
t
wrap, start ov
e
r at
the beginning of
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penneq
u
in
Don'
t
ask to
buf
f
e
r tr
a
cks
r
ight after load
i
ng
t
hem
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Add USB connection h
a
n
d
ling to the buffering thread
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
ennequin
Fix
t
racks
b
eing forgott
e
n about wh
e
n
there was no
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequi
n
Im
p
rove yield_
c
odec and use it
b
etter
to make audio
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Pennequin
b
u
fgetdata(): fix the a
v
ailable vs
.
requ
i
r
e
d check
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Pennequin
Fix a stupid bug that ca
u
s
e
d
some han
d
les not
t
o be
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas P
e
nne
q
uin
In
t
roduce yield_codec(), simi
l
ar to the original
a
u
dio_yiel
d
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
olas Pennequin
Make th
e
ta
r
get beha
v
e the s
a
m
e
as
t
h
e sim (don't care
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequ
i
n
Trying to make audio
sta
r
t
p
lay
i
ng faste
r
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
e
nne
q
uin
Fix
p
layback stopping by closing all track han
d
les
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
i
colas Pen
n
equ
i
n
A few com
m
ent tweaks
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penn
e
q
u
i
n
Add a test
i
n
a
udio_cu
r
rent
_
track()
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as Pennequin
D
o
the initial popula
t
ing
o
f the st
a
tic I
D
3
s
tructs
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Pennequin
M
ake audio_read_
n
ext_met
a
data a b
i
t safer
.
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Penn
e
quin
Minor correctio
n
of
a
comment
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Use
i
d3
_
h
id rather t
h
an tagi
n
fo_ready to know if ID3
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as Pe
n
neq
u
i
n
Request b
u
ffer
i
ng of the current track if
it
is to
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penne
q
uin
Add s
o
me s
y
nchronisation to
p
revent s
o
me deadlocks
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
M
a
k
e basic s
e
eking actually work
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s P
e
nnequin
Add close_tr
a
ck
_
handles and
reenable
audio_clear
_
t
rack_entri
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
Pennequin
Relea
s
e d
a
t
a
for the
f
inished tr
a
ck on track chan
g
e
.
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s Penn
e
quin
Store filesize on lo
a
d
.
T
h
is
m
akes basic seekin
g
work
.
commit
|
commitdiff
|
tree
2007-10-25
N
i
col
a
s Penneq
u
in
Start u
s
ing "filli
n
g" correct
l
y t
o
make mor
e
tracks
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Pennequin
R
e
m
o
ve the test p
l
u
g
i
n
commit
|
commitdiff
|
tree
2007-10-25
N
ic
o
las Pennequin
Increment tra
c
k_widx
a
fte
r
loading a t
r
ack
commit
|
commitdiff
|
tree
next