Mercurial > audlegacy
comparison Plugins/Input/console/Audacious_Driver.cpp @ 1395:b7250d516b62 trunk
[svn] - revert botched patch
| author | nenolod |
|---|---|
| date | Wed, 12 Jul 2006 08:19:01 -0700 |
| parents | 61d78065b630 |
| children | 7ca5335c205c |
comparison
equal
deleted
inserted
replaced
| 1394:65490480559e | 1395:b7250d516b62 |
|---|---|
| 250 | 250 |
| 251 static void get_spc_info_( Spc_Emu::header_t const& h, byte const* xid6, long xid6_size, | 251 static void get_spc_info_( Spc_Emu::header_t const& h, byte const* xid6, long xid6_size, |
| 252 track_info_t* out ) | 252 track_info_t* out ) |
| 253 { | 253 { |
| 254 // decode length (can be in text or binary format) | 254 // decode length (can be in text or binary format) |
| 255 unsigned const char s [4] = { h.len_secs [0], h.len_secs [1], h.len_secs [2], 0 }; | 255 char s [4] = { h.len_secs [0], h.len_secs [1], h.len_secs [2], 0 }; |
| 256 int len_secs = (unsigned char) s [1] * 0x100 + s [0]; | 256 int len_secs = (unsigned char) s [1] * 0x100 + s [0]; |
| 257 | 257 if ( s [1] >= ' ' || (!s [1] && isdigit( s [0] )) ) |
| 258 len_secs = atoi( s ); | |
| 258 if ( len_secs ) | 259 if ( len_secs ) |
| 259 out->length = len_secs * 1000; | 260 out->length = len_secs * 1000; |
| 260 | 261 |
| 261 if ( xid6_size ) | 262 if ( xid6_size ) |
| 262 get_spc_xid6( xid6, xid6_size, out ); | 263 get_spc_xid6( xid6, xid6_size, out ); |
