mirror of https://github.com/FreeRDP/FreeRDP
[warnings] fix some warnings on mac os
This commit is contained in:
parent
a4a7019f97
commit
1bd6d70057
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
#import <Cocoa/Cocoa.h>
|
||||||
|
|
||||||
int main(int argc, const char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
return NSApplicationMain(argc, argv);
|
return NSApplicationMain(argc, argv);
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,11 +113,11 @@ static void mf_peer_rdpsnd_activated(RdpsndServerContext* context)
|
||||||
mf_rdpsnd_derive_buffer_size(recorderState.queue, &recorderState.dataFormat, 0.05,
|
mf_rdpsnd_derive_buffer_size(recorderState.queue, &recorderState.dataFormat, 0.05,
|
||||||
&recorderState.bufferByteSize);
|
&recorderState.bufferByteSize);
|
||||||
|
|
||||||
for (int i = 0; i < SND_NUMBUFFERS; ++i)
|
for (size_t x = 0; x < SND_NUMBUFFERS; ++x)
|
||||||
{
|
{
|
||||||
AudioQueueAllocateBuffer(recorderState.queue, recorderState.bufferByteSize,
|
AudioQueueAllocateBuffer(recorderState.queue, recorderState.bufferByteSize,
|
||||||
&recorderState.buffers[i]);
|
&recorderState.buffers[x]);
|
||||||
AudioQueueEnqueueBuffer(recorderState.queue, recorderState.buffers[i], 0, NULL);
|
AudioQueueEnqueueBuffer(recorderState.queue, recorderState.buffers[x], 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
recorderState.currentPacket = 0;
|
recorderState.currentPacket = 0;
|
||||||
|
@ -141,7 +141,7 @@ BOOL mf_peer_rdpsnd_init(mfPeerContext* context)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL mf_peer_rdpsnd_stop()
|
BOOL mf_peer_rdpsnd_stop(void)
|
||||||
{
|
{
|
||||||
recorderState.isRunning = false;
|
recorderState.isRunning = false;
|
||||||
AudioQueueStop(recorderState.queue, true);
|
AudioQueueStop(recorderState.queue, true);
|
||||||
|
|
Loading…
Reference in New Issue