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
Better logic in the buffering thread loop
2007-10-25
Nicolas Pennequin
Bet
t
er log
i
c i
n
the buffering thread lo
o
p
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pe
n
nequin
Turn bu
f
close int
o
a queue ev
e
n
t s
e
nder to ensu
r
e a
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Protect the linked list with a mut
e
x
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Some cleanup/s
i
mplifi
c
at
i
o
n
a
n
d
an
a
dded comme
n
t
commit
|
commitdiff
|
tree
2007-10-25
N
i
c
o
l
as
P
enneq
u
in
Move the call to ata_sleep() in fill_buffer()
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
Pennequin
No bufclosing of handles
aft
e
r t
r
ack c
h
ange
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Add a b
i
t more debug info
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequi
n
Reintrodu
c
e codec_advance_buffer_counters()
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Pennequin
Don'
t
a
t
tempt t
o
buffer t
r
acks if
t
here are n
o
more
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequi
n
H
ide t
h
e buffering thread and que
u
e inside buffering
.
c
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
o
las Pennequ
i
n
Revert "Repla
c
e yield_codec() wi
t
h
a
cal
l
to que
u
e_wa
i
t_w
_
tm
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
icola
s
Penn
e
q
u
in
Same as the previ
o
us c
o
mmit but with
a
different
c
allba
c
k
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
C
heck that meta
d
ata
is pr
e
sent before call
i
ng back
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
10
t
icks i
s
way too long
commit
|
commitdiff
|
tree
2007-10-25
N
ic
o
las Pennequin
fil
e
buf_is_lowdata isn'
t
need
e
d anymore
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Rep
l
ace yield_codec() with a cal
l
to qu
e
ue_wait_w_tmo()
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pen
n
equin
R
e
buffer after playlist changes
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Enable and correct a
u
dio_in
v
alidate_t
r
acks to mak
e
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
L
i
ne lengths
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Only
attempt
t
o fil
l
the buffer if i
t
needs to be filled
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
Pennequin
Free
t
he buffer
mo
r
e
o
f
ten when there
is le
s
s data
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s Penne
q
uin
Improved buffer use by filling w
h
e
n
the
dis
k
is
a
ctive
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pen
n
e
quin
The number of t
r
acks for which we have
h
andles is one
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penn
e
q
uin
Ad
d
buf
f
ered_data()
f
or la
t
e
r use
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
Pennequin
De
b
ug screen for t
h
e buffering thread
commit
|
commitdiff
|
tree
2007-10-25
N
i
colas Penne
q
uin
Ma
k
e
d
ir ski
p
ping work correctl
y
and probably improve
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pe
n
n
equin
code
c
_adva
n
ce_buffer_callba
c
k: Rem
o
ve
unused code
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
e
nnequin
codec_se
e
k_buffer_
c
allback
:
a simple
bufs
e
ek call i
s
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s Pe
n
nequin
Mak
e
bufadvan
c
e rely o
n
bu
f
seek instea
d
of duplicating
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s Pennequ
i
n
Corr
e
ct bufseek
commit
|
commitdiff
|
tree
2007-10-25
Nicolas P
e
nnequin
Some code docu
m
entation updates
commit
|
commitdiff
|
tree
2007-10-25
Nicolas P
e
nnequin
Renam
e
free_buffer() to
s
hrink_handle()
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
Pennequin
a
u
dio_current_tr
a
ck: Don't use c
u
rtrack_id3 if i
t
's
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as
Pennequin
Fix warning
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
e
nnequ
i
n
Clear static structs on stop
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
I
mprove metadata
u
se
commit
|
commitdiff
|
tree
2007-10-25
Nicolas P
e
n
nequin
Pointer cosmetic chang
e
s
commit
|
commitdiff
|
tree
2007-10-25
N
icol
a
s
Pen
n
equin
S
i
lence
warni
n
gs on coldfire
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
enneq
u
in
Rename getptr to
b
ufgetcodec and ma
k
e it ensu
r
e the
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penneq
u
i
n
bufopen: Imm
e
d
i
ately request
buf
f
ering
for certain
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Check for the ca
s
e when no
d
ata is ready and the
requi
r
ed
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Penn
e
quin
Revert
"Simplif
y
codec_requ
e
st_buffer_c
a
llb
a
ck()"
commit
|
commitdiff
|
tree
2007-10-25
Nico
l
as Pennequi
n
cu
r
tr
a
ck_id3
a
nd nexttrack_id3 should be stati
c
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penn
e
q
u
i
n
A bit of
mai
n
tenance
commit
|
commitdiff
|
tree
2007-10-25
N
i
co
l
as Pennequ
i
n
Simpl
i
fy codec_requ
e
s
t_buff
e
r_cal
l
back()
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequi
n
Onl
y
ask o
n
c
e
f
or bu
f
ferin
g
,
t
hen wa
i
t for the d
a
t
a
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Fix bufread imple
m
entation
.
This fixes problems
w
it
h
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
l
a
s Penne
q
u
i
n
Minor clea
n
up
commit
|
commitdiff
|
tree
2007-10-25
N
icolas Pennequin
Properl
y
clear tra
c
k info
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s Pennequin
reset_handle(): Fix
warning
a
nd m
a
ke
it stat
i
c
commit
|
commitdiff
|
tree
2007-10-25
N
i
c
olas Pennequin
Fac
t
or out the duplicate c
o
de from bufa
d
vance in
rebuffer_h
a
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
i
cola
s
Pen
n
equin
Implement backwards sk
i
ppi
n
g by commpleting aud
i
o_re
b
uffe
r
()
commit
|
commitdiff
|
tree
2007-10-25
N
i
c
o
las Pennequin
Clear
warn
i
n
gs and mo
r
e cleanup
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Penneq
u
i
n
Cleanup
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penn
e
quin
Sil
e
nce the warning f
r
om reset_handle()
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
ennequin
audio
_
stop_playback():
Relea
s
e
track ha
n
dles BEFORE
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
ico
l
a
s Pennequ
i
n
Seeking was
n
't
a
ct
u
lly
q
uite cor
r
ect: make it
s
e
e
k
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Implement rebuffering f
o
r
seeking
ou
t
side of buffered
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Pennequin
Fix play
b
ack
res
u
m
ing
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penne
q
uin
Prevent file descriptor
l
eakage or over
u
se
commit
|
commitdiff
|
tree
2007-10-25
N
i
c
o
las
P
ennequin
co
d
ec_filebuf_callback: Setting copy_n to
0
was a
V
ERY
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las
Penneq
u
in
Silence a few warnings
commit
|
commitdiff
|
tree
2007-10-25
N
i
colas
P
enne
q
uin
bufclo
s
e:
M
ake sure the h
a
nd
l
e's file descriptor
is
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Pennequin
bufopen
(
): Don't
i
mmediately
buf
f
er
certain ty
p
es o
f
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
i
c
olas Pennequin
codec
_
seek_buffer_cal
l
back():
C
heck whether
i
t's possibl
e
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penne
q
uin
Uncomment a part of audio_rebuffer() to make rebuffering
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las Pennequin
Whe
n
data can't wr
a
p
, start ove
r
at the beginn
i
ng of
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
D
on't ask to buffer
tracks right after
loading them
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
l
as P
e
nnequin
A
d
d USB co
n
nection handling to the bufferin
g
threa
d
commit
|
commitdiff
|
tree
2007-10-25
Nicolas P
e
nneq
u
in
Fix t
r
ac
k
s being f
o
rgotten about when th
e
r
e was no
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
enne
q
uin
Imp
r
ove yield_codec
and use i
t
bett
e
r t
o
make audio
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las
Pennequin
bufget
d
ata(): fix the available vs
.
r
e
q
uired chec
k
.
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
olas
P
ennequin
Fix a
stupid bug that caused some h
a
ndles not to be
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
Pe
n
nequin
Introduce yield_
c
o
d
ec
(
), similar to the
o
riginal aud
i
o_yield
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas P
e
n
ne
q
u
in
Make
the target b
e
have the s
a
m
e
a
s the sim
(don't care
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Trying to make audio start playing faster
.
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
olas P
e
nnequin
Fix p
l
ayback
s
topping by closing all
t
rack handles
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
A few
c
omment
twea
k
s
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Add a test in audio_current_track()
commit
|
commitdiff
|
tree
2007-10-25
N
icolas
P
ennequin
Do the initial popula
t
ing of t
h
e
s
t
atic ID3 struc
t
s
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
i
colas P
e
nnequin
Make audio_re
a
d_n
e
xt_metadata a bit s
a
fer
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Minor corr
e
ction of a comment
commit
|
commitdiff
|
tree
2007-10-25
N
i
c
o
las Pennequin
Use id3_hid
r
athe
r
th
a
n tag
i
nfo_ready t
o
know
i
f ID3
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Ni
c
o
las Penne
q
u
in
Request buffering of th
e
cu
r
rent track
if it
is to
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
i
c
olas Pennequin
Add
s
o
m
e sy
n
chroni
s
ation to p
r
ev
e
nt s
o
me
deadlocks
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penne
q
uin
Make b
a
sic seeking actual
l
y work
commit
|
commitdiff
|
tree
2007-10-25
N
ico
l
a
s Pennequ
i
n
Add close_track_
h
andles and reenable a
u
di
o
_
clear_track
_
entr
i
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s Pennequin
Release data f
o
r the
finished
track on track chang
e
.
commit
|
commitdiff
|
tree
2007-10-25
Nicol
a
s Pennequ
i
n
Store filesiz
e
o
n load
.
This makes b
a
sic seeking wo
r
k
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penn
e
quin
Start u
s
ing "
f
illing"
c
orr
e
c
tly
to make
more track
s
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
N
i
co
l
as
Pennequin
Re
m
ove the te
s
t plugin
commit
|
commitdiff
|
tree
2007-10-25
Nicolas P
e
nnequ
i
n
Increme
n
t
track_widx after
l
o
a
ding
a
t
r
ack
commit
|
commitdiff
|
tree
2007-10-25
Nicolas
P
ennequin
Cosmetics and get rid
of
w
arni
n
g
s
.
commit
|
commitdiff
|
tree
2007-10-25
Nic
o
las
P
ennequin
ID3 ha
n
dling improvements
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Penneq
u
i
n
Tr
i
gger a
C
PU
boost bef
o
re reading f
r
om dis
k
commit
|
commitdiff
|
tree
2007-10-25
Nicolas P
e
nnequin
Debug output tweaki
n
g
commit
|
commitdiff
|
tree
2007-10-25
Nicola
s
Pennequ
i
n
A b
u
nc
h
of impr
o
vem
e
nts that make play
b
a
ck of the firs
t
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequin
Ad
d
a get_offset API call to make codec
_
advance_buff
e
r_loc_c
.
.
.
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequ
i
n
A c
o
uple more tweaks
commit
|
commitdiff
|
tree
2007-10-25
Nicolas Pennequ
i
n
Fix a stupid bug th
a
t prevented the buffering s
y
stem
.
.
.
commit
|
commitdiff
|
tree
next