]> git.tuebingen.mpg.de Git - paraslash.git/commit
afs: Simplify open_next_audio_file().
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 21 Dec 2014 15:24:18 +0000 (15:24 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 30 Mar 2015 21:40:57 +0000 (21:40 +0000)
commit19d0ffee2c551fb8d17f01f5bd04b0c52987147b
tree6ed8501f6be20ac797ed45325148a63616eca950
parentca14953f8f1c5968578735af5de7e966e9b4487d
afs: Simplify open_next_audio_file().

This function of afs.c is called whenever the virtual streaming
system requests a new audio file. It determines the row of the audio
file table that corresponds to the audio file with highest score,
according to the current mood or playlist. The function passes this
information to open_and_update_audio_file() of aft.c which sets up
an afd structure to be passed back to the server process.

Letting open_and_update_audio_file() determine which file to
open is shorter, and it allows to get rid of two arguments to
open_and_update_audio_file().
afs.c
afs.h
aft.c