зеркало из https://github.com/mozilla/cubeb.git
Remove unnecessary struct keywords.
This commit is contained in:
Родитель
d2576fdb49
Коммит
199535ce7b
|
@ -293,7 +293,7 @@ audiotrack_stream_init(cubeb * ctx, cubeb_stream ** stream, char const * stream_
|
|||
cubeb_state_callback state_callback,
|
||||
void * user_ptr)
|
||||
{
|
||||
struct cubeb_stream * stm;
|
||||
cubeb_stream * stm;
|
||||
int32_t channels;
|
||||
int32_t min_frame_count;
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ struct cubeb {
|
|||
};
|
||||
|
||||
struct cubeb_stream {
|
||||
struct cubeb * context;
|
||||
cubeb * context;
|
||||
LPDIRECTSOUNDBUFFER buffer;
|
||||
DWORD buffer_size;
|
||||
cubeb_stream_params params;
|
||||
|
|
|
@ -35,7 +35,7 @@ struct cubeb {
|
|||
#define NBUFS 4
|
||||
|
||||
struct cubeb_stream {
|
||||
struct cubeb * context;
|
||||
cubeb * context;
|
||||
SLObjectItf playerObj;
|
||||
SLPlayItf play;
|
||||
SLBufferQueueItf bufq;
|
||||
|
|
|
@ -65,7 +65,7 @@ struct cubeb {
|
|||
};
|
||||
|
||||
struct cubeb_stream {
|
||||
struct cubeb * context;
|
||||
cubeb * context;
|
||||
pa_stream * stream;
|
||||
cubeb_data_callback data_callback;
|
||||
cubeb_state_callback state_callback;
|
||||
|
|
|
@ -55,7 +55,7 @@ float_to_s16(void *ptr, long nsamp)
|
|||
static void
|
||||
sndio_onmove(void *arg, int delta)
|
||||
{
|
||||
struct cubeb_stream *s = (struct cubeb_stream *)arg;
|
||||
cubeb_stream *s = (cubeb_stream *)arg;
|
||||
|
||||
s->rdpos += delta;
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ sndio_mainloop(void *arg)
|
|||
{
|
||||
#define MAXFDS 8
|
||||
struct pollfd pfds[MAXFDS];
|
||||
struct cubeb_stream *s = arg;
|
||||
cubeb_stream *s = arg;
|
||||
int n, nfds, revents, state;
|
||||
size_t start = 0, end = 0;
|
||||
long nfr;
|
||||
|
@ -168,12 +168,12 @@ sndio_stream_init(cubeb *context,
|
|||
cubeb_state_callback state_callback,
|
||||
void *user_ptr)
|
||||
{
|
||||
struct cubeb_stream *s;
|
||||
cubeb_stream *s;
|
||||
struct sio_par wpar, rpar;
|
||||
DPR("sndio_stream_init(%s)\n", stream_name);
|
||||
size_t size;
|
||||
|
||||
s = malloc(sizeof(struct cubeb_stream));
|
||||
s = malloc(sizeof(cubeb_stream));
|
||||
if (s == NULL)
|
||||
return CUBEB_ERROR;
|
||||
s->context = context;
|
||||
|
|
Загрузка…
Ссылка в новой задаче