Lumenarium/src/app/blumen_lumen.h

45 lines
849 B
C
Raw Normal View History

//
// File: blumen_lumen.h
// Author: Peter Slattery
// Creation Date: 2021-01-15
//
#ifndef BLUMEN_LUMEN_H
typedef struct motor_packet
{
u8 FlowerPositions[3];
} motor_packet;
2021-01-24 01:38:19 +00:00
#pragma pack(push, 1)
struct microphone_packet
{
b8 ChangeAnimation;
char AnimationFileName[32];
b8 SetLayer;
char LayerName[32];
r32 LayerOpacity;
b8 SetLayerParamColor;
char LayerParamColor[7];
r32 OverrideDuration;
};
#pragma pack(pop)
struct mic_listen_job_data
{
platform_socket_manager* SocketManager;
packet_ringbuffer* MicPacketBuffer;
platform_socket_handle_ ListenSocket;
};
2021-01-24 01:38:19 +00:00
struct blumen_lumen_state
{
packet_ringbuffer MicPacketBuffer;
temp_job_req JobReq;
platform_thread_handle MicListenThread;
mic_listen_job_data MicListenJobData;
2021-01-24 01:38:19 +00:00
};
#define BLUMEN_LUMEN_H
#endif // BLUMEN_LUMEN_H