XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions | Variables
audmain.cpp File Reference
#include <stdint.h>
#include <_xeneva.h>
#include <stdio.h>
#include <sys\_keproc.h>
#include <sys\_kefile.h>
#include <sys/mman.h>
#include <sys\iocodes.h>
#include <string.h>
#include <stdlib.h>
#include <sys\socket.h>
#include <sys\_keipcpostbox.h>
#include <widgets/list.h>
Include dependency graph for audmain.cpp:

Classes

struct  _deodhai_audio_msg_
 
struct  _audio_control_panel_
 
struct  _audio_box_
 

Macros

#define DEODHAI_GET_AUDIO_CONNECTION   "DeodhaiGetAudioConnection"
 
#define DEODHAI_GET_GLOBAL_CONNECTION   "DeodhaiAudioGetGlobalConnection"
 
#define DEODHAI_AUDIO_CONNECTION_HANDSHAKE   11
 
#define DEODHAI_AUDIO_CONNECTION_CLOSED   12
 

Typedefs

typedef struct _deodhai_audio_msg_ DeodhaiAudioMessage
 
typedef struct _audio_control_panel_ AudioControlPanel
 
typedef struct _audio_box_ DeodhaiAudioBox
 

Functions

uint16_t DeodhaiGetNewControlPanelKey ()
 
uint16_t DeodhaiGetNewSampleBuffKey ()
 
DeodhaiAudioBoxDeodhaiCreateAudioBox (uint16_t ownerThreadID)
 
void DeodhaiAudioBoxClose (DeodhaiAudioBox *box)
 
void DeodhaiAudioHandleMessage (DeodhaiAudioMessage *message)
 
void DeodhaiAudioComposeFrame ()
 
int main (int argc, char *argv[])
 

Variables

int postbox
 
int sound
 
uint64_tmainOutput
 
list_taudioBoxList
 
uint16_t shControlPanelKey
 
uint16_t shSampleBufferKey
 
DeodhaiAudioBoxglobalBox
 

Macro Definition Documentation

◆ DEODHAI_AUDIO_CONNECTION_CLOSED

#define DEODHAI_AUDIO_CONNECTION_CLOSED   12

◆ DEODHAI_AUDIO_CONNECTION_HANDSHAKE

#define DEODHAI_AUDIO_CONNECTION_HANDSHAKE   11

◆ DEODHAI_GET_AUDIO_CONNECTION

#define DEODHAI_GET_AUDIO_CONNECTION   "DeodhaiGetAudioConnection"

◆ DEODHAI_GET_GLOBAL_CONNECTION

#define DEODHAI_GET_GLOBAL_CONNECTION   "DeodhaiAudioGetGlobalConnection"

Typedef Documentation

◆ AudioControlPanel

◆ DeodhaiAudioBox

typedef struct _audio_box_ DeodhaiAudioBox

◆ DeodhaiAudioMessage

Function Documentation

◆ DeodhaiAudioBoxClose()

void DeodhaiAudioBoxClose ( DeodhaiAudioBox box)

◆ DeodhaiAudioComposeFrame()

void DeodhaiAudioComposeFrame ( )
  • handle global controls *‍/

◆ DeodhaiAudioHandleMessage()

void DeodhaiAudioHandleMessage ( DeodhaiAudioMessage message)

◆ DeodhaiCreateAudioBox()

DeodhaiAudioBox * DeodhaiCreateAudioBox ( uint16_t  ownerThreadID)

◆ DeodhaiGetNewControlPanelKey()

uint16_t DeodhaiGetNewControlPanelKey ( )

◆ DeodhaiGetNewSampleBuffKey()

uint16_t DeodhaiGetNewSampleBuffKey ( )

◆ main()

int main ( int  argc,
char *  argv[] 
)

Variable Documentation

◆ audioBoxList

list_t* audioBoxList

◆ globalBox

DeodhaiAudioBox* globalBox

◆ mainOutput

uint64_t* mainOutput

◆ postbox

int postbox

BSD 2-Clause License

Copyright (c) 2023-2024, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

◆ shControlPanelKey

uint16_t shControlPanelKey

◆ shSampleBufferKey

uint16_t shSampleBufferKey

◆ sound

int sound