forked from len0rd/rockbox
Move a function to gwps-common.c because it belongs there
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17084 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fef82552e1
commit
84dc8d2c7e
3 changed files with 14 additions and 15 deletions
|
@ -143,10 +143,10 @@ const int afmt_rec_format[AFMT_NUM_CODECS] =
|
|||
#endif /* CONFIG_CODEC == SWCODEC && defined (HAVE_RECORDING) */
|
||||
/****/
|
||||
|
||||
unsigned long unsync(unsigned long b0,
|
||||
unsigned long b1,
|
||||
unsigned long b2,
|
||||
unsigned long b3)
|
||||
static unsigned long unsync(unsigned long b0,
|
||||
unsigned long b1,
|
||||
unsigned long b2,
|
||||
unsigned long b3)
|
||||
{
|
||||
return (((long)(b0 & 0x7F) << (3*7)) |
|
||||
((long)(b1 & 0x7F) << (2*7)) |
|
||||
|
@ -199,15 +199,6 @@ static bool id3_is_genre_string(const char *string)
|
|||
string <= genres[sizeof(genres)/sizeof(char*) - 1] );
|
||||
}
|
||||
|
||||
char* id3_get_codec(const struct mp3entry* id3)
|
||||
{
|
||||
if (id3->codectype < AFMT_NUM_CODECS) {
|
||||
return (char*)audio_formats[id3->codectype].label;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
HOW TO ADD ADDITIONAL ID3 VERSION 2 TAGS
|
||||
Code and comments by Thomas Paul Diffenbach
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue