coachmor.blogg.se

Headphone jack distorted sound
Headphone jack distorted sound










headphone jack distorted sound headphone jack distorted sound

RightChannel = ( jack_default_audio_sample_t * ) jack_port_get_buffer( RightChannelOutputPort, nframes ) įor( unsigned int i = 0 iSoundFile->getSoundDataRef().at( SamplerPtr->SamplePosition ) LeftChannel = ( jack_default_audio_sample_t * ) jack_port_get_buffer( LeftChannelOutputPort, nframes ) Jack_default_audio_sample_t * LeftChannel, * RightChannel SamplerClass * SamplerPtr = ( SamplerClass * ) arg static int Process( jack_nframes_t nframes, void * arg ) Right now I'm feeding it a 16-bit wave music file.

headphone jack distorted sound

I suspect I have to turn my binary ( then later converted to decimal ) data into a float signal between -1 to 1. This is the callback function that is currently working but producing incredibly distorted sounds. After a bit of troubleshooting I realized ( at least I'm pretty sure ) I have been feeding the wrong kind of values to sound ports via the JackAudio library.












Headphone jack distorted sound