Changeset 483:3bf1acf53dda in roaraudio for roard
- Timestamp:
- 08/13/08 02:21:17 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/driver_roar.c
r0 r483 2 2 3 3 #include "roard.h" 4 5 // this is to avoid warning messages on platforms 6 // where sizeof(void*) == 8 and szeof(int) == 4 7 #ifdef __LP64__ 8 #define INSTINT long int 9 #else 10 #define INSTINT int 11 #endif 4 12 5 13 int driver_roar_open(DRIVER_USERDATA_T * inst, char * device, struct roar_audio_info * info) { … … 19 27 */ 20 28 21 *( int*)inst = roar_simple_play(info->rate, info->channels, info->bits, info->codec, device, "roard");29 *(INSTINT*)inst = roar_simple_play(info->rate, info->channels, info->bits, info->codec, device, "roard"); 22 30 23 if ( *( int*)inst == -1 )31 if ( *(INSTINT*)inst == -1 ) 24 32 return -1; 25 33 … … 28 36 29 37 int driver_roar_close(DRIVER_USERDATA_T inst) { 30 return roar_simple_close(( int)inst);38 return roar_simple_close((INSTINT)inst); 31 39 } 32 40 … … 36 44 37 45 int driver_roar_write(DRIVER_USERDATA_T inst, char * buf, int len) { 38 return write(( int)inst, buf, len);46 return write((INSTINT)inst, buf, len); 39 47 } 40 48 41 49 int driver_roar_read(DRIVER_USERDATA_T inst, char * buf, int len) { 42 return read(( int)inst, buf, len);50 return read((INSTINT)inst, buf, len); 43 51 } 44 52
Note: See TracChangeset
for help on using the changeset viewer.