Forum Discussion
Altera_Forum
Honored Contributor
14 years agoI cant work this out!
This is to adjust volume of incoming audio samples by just multiplying by a constant value (SW). I wanted to be able to control the volume value with the switches on the DE2 but i get no sound at all...
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- Ok i got it working. It was something i had no idea would make a difference but thought i'd try it. I hope you might be able to explain or help me understand why this makes a difference I added what a few other designs i've seen call a pipeline buffer- code below From looking at this, it just seems like the audio samples are being synced upto the system clock edge but i dont understand why that is necessary. --- Quote End --- Nor will anyone else likely be able to figure out why is was necessary since you haven't posted your entire design (both the 'working' and the 'not working'). Synchronizing signals to a clock is necessary when asynchronous signals or signals from a different clock domain are used with synchronous logic, but the original code you posted has no clock so that wouldn't be the case...unless you haven't posted something that is relevant to the design. As an example, it is not even clear how your samples have morphed into a 'left' and a 'right'. Kevin