Max Kellermann
35a939e3e7
player: added commands QUEUE and CANCEL
...
QUEUE adds a new song to the player's queue. CANCEL clears the queue.
These two commands replace the old and complex queueState and
queueLockState code.
2008-10-12 00:07:54 +02:00
Max Kellermann
2fcbabf4d1
player: removed set_current_song()
...
set_current_song() is an internal function and consists of only one
assignment. Eliminate it.
2008-10-11 12:52:57 +02:00
Max Kellermann
42409a35e2
player: removed player_control.fileTime
...
This variable is superfluous, it is only used to copy its value to
player_control.totalTime. Since the original source of this value
(song->tag->time) will still be available at this point, we can safely
remove fileTime.
2008-10-11 12:52:51 +02:00
Max Kellermann
5de7521900
player: added player_get_audio_format()
...
player_get_audio_format() replaces getPlayerSampleRate(),
getPlayerBits(), getPlayerChannels().
2008-10-10 14:51:22 +02:00
Max Kellermann
0b4dfae22e
player: added player_control.audio_format
...
This replaces the attributes bits, channels, sampleRate.
2008-10-10 14:47:58 +02:00
Max Kellermann
5e7b18f874
song: removed CamelCase
...
CamelCase is ugly... rename all functions.
2008-10-08 11:05:34 +02:00
Max Kellermann
d562ba5fbb
song: converted typedef Song to struct song
...
Again, a data type which can be forward-declared.
2008-10-08 10:49:11 +02:00
Max Kellermann
a0272c2d61
notify: added notify_deinit()
...
Destroy the mutex when it is not used anymore.
2008-09-24 07:14:11 +02:00
Max Kellermann
a34e1d2b84
include cleanup
...
As usual, include only headers which are really needed.
2008-09-06 20:28:31 +02:00
Max Kellermann
f34f694ec3
moved player_command_finished() to player_thread.c
2008-08-26 08:45:15 +02:00
Max Kellermann
e2c8b960de
moved code to pc_init(), dc_init()
2008-08-26 08:45:14 +02:00
Max Kellermann
5e51fa020d
renamed player.c to player_control.c
...
Give player.c a better name, meaning that the code is used to control
the player thread.
2008-08-26 08:44:38 +02:00
Max Kellermann
4255bba0f7
moved global variable "pc" to player.h
...
This is the last of the three variables. Now we don't need
playerData.h anymore in most sources.
2008-08-26 08:41:05 +02:00