Changeset 5270:e25346c13638 in roaraudio for libroaresd/esdfile.c
- Timestamp:
- 11/17/11 18:20:12 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroaresd/esdfile.c
r4708 r5270 47 47 } 48 48 int esd_play_file( const char *name_prefix, const char *filename, int fallback ) { 49 // TODO: add support for fallback 50 return roar_simple_play_file((char*)filename, NULL, (char*)name_prefix) == -1 ? -1 : 0; 49 int ret = roar_simple_play_file(filename, NULL, name_prefix); 50 51 if ( ret != -1 ) 52 return 0; 53 54 if ( !fallback ) 55 return -1; 56 57 return roar_simple_play_file(filename, "+fork", name_prefix) == -1 ? -1 : 0; 51 58 } 52 59 int esd_file_cache( int esd, const char *name_prefix, const char *filename ) {
Note: See TracChangeset
for help on using the changeset viewer.