Hi friends,
Below is my C code
this is my code I want to convert to python can anybody can help with coding I am new to python
Below is my C code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
void WaveFormsBuffer::FillOutputWaveFormBufferData(char * pBuffer, int nBuffsize,uint16_t nConfig) { short pchannelsBuffer[ 7 ][ 1024 ]; short * pData = (short * )pBuffer; for ( int i = 0 ;i <((nBuffsize / 2 ) / 7 );i + + ) { for ( int j = 0 ;j <MAX_NUM_WAV_FILES;j + + ) { pchannelsBuffer[j][i] = * pData + + ; } } for ( int k = 0 ;k <MAX_NUM_WAV_FILES ; k + + ) { fwrite(&pchannelsBuffer[k][ 0 ],(nBuffsize / 7 ), 1 ,m_pFp[k]); } } |