Mercurial > audlegacy-plugins
comparison src/psf2/oss.c @ 2738:d0011cde16b7
blah blah blah
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Mon, 30 Jun 2008 20:46:42 -0500 |
parents | 62cc6d667119 |
children | 48cb30c1d0ea |
comparison
equal
deleted
inserted
replaced
2737:62cc6d667119 | 2738:d0011cde16b7 |
---|---|
45 static INT32 num_frags; | 45 static INT32 num_frags; |
46 #define OSS_FRAGMENT (0x000D | (num_frags<<16)); // 16k fragments (2 * 2^14). | 46 #define OSS_FRAGMENT (0x000D | (num_frags<<16)); // 16k fragments (2 * 2^14). |
47 | 47 |
48 // local variables | 48 // local variables |
49 | 49 |
50 void (*m1sdr_Callback)(unsigned long dwNumSamples, signed short *data); | 50 void (*m1sdr_Callback)(signed short *data, unsigned long dwNumSamples); |
51 unsigned long cbUserData; | 51 unsigned long cbUserData; |
52 | 52 |
53 static int hw_present; | 53 static int hw_present; |
54 | 54 |
55 static INT32 is_broken_driver; | 55 static INT32 is_broken_driver; |
79 { | 79 { |
80 if (!hw_present) return; | 80 if (!hw_present) return; |
81 | 81 |
82 if (m1sdr_Callback) | 82 if (m1sdr_Callback) |
83 { | 83 { |
84 m1sdr_Callback(nDSoundSegLen, (INT16 *)samples); | 84 m1sdr_Callback(samples, nDSoundSegLen); |
85 } | 85 } |
86 } | 86 } |
87 // checks the play position to see if we should trigger another update | 87 // checks the play position to see if we should trigger another update |
88 | 88 |
89 void m1sdr_TimeCheck(void) | 89 void m1sdr_TimeCheck(void) |