player: added player_control.audio_format

This replaces the attributes bits, channels, sampleRate.
This commit is contained in:
Max Kellermann
2008-10-10 14:47:58 +02:00
parent 8c33b64847
commit 0b4dfae22e
4 changed files with 12 additions and 17 deletions

View File

@@ -256,17 +256,17 @@ double getPlayerTotalPlayTime(void)
unsigned int getPlayerSampleRate(void)
{
return pc.sampleRate;
return pc.audio_format.sample_rate;
}
int getPlayerBits(void)
unsigned getPlayerBits(void)
{
return pc.bits;
return pc.audio_format.bits;
}
int getPlayerChannels(void)
unsigned getPlayerChannels(void)
{
return pc.channels;
return pc.audio_format.channels;
}
/* this actually creates a dupe of the current metadata */