This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Aud

hi

  • Hi,

    Thanks for your post.

    I guess, your custom code would have corrupted the empty buffers initialized with 0's and i think, we need to debug the code step by step to sort out where the code breaks which is not desired. If the code behaves strange other than what we expect, there is no other option other than stepping the code through keeping appropriate breakpoints at desired places where we think the issue could be and catching the desired local/global variables in the watch window through observing the values on the same at run time thereby, we could validate the same to find out the cause of the issue.

    In my opinion, BIOS PSP 1.30.01 Audio sample code would work find "as-is" with out any garbabe values initialized on the buffer pointer unless it loads the empty buffers to IN STREAM through line in. The biospsp sample code works as expected with out any code changes "as-is" but in your case, please validate the code changes which would have probably corrupted the desired case.

    Thanks & regards,

    Sivaraj K

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    -------------------------------------------------------------------------------------------------------

  • Hi Sivaraj,

    Thank you for your response, first I thought the same that  the modified code has injected some error, but then I checked with the original sample code to make sure the sample works fine, and reported this outcome actually based on the original sample code.

    I have attached the snippets for your reference which was taken with the audiosample code, without any of my modified code.

    And I did not connect any input to the Line In of the OMAP L137 card.

    This is what i saw when I kept the BP, in the function prime ()

    1. It initialized the memory location's to 0 as intended for both the buffer's.

    2. First entry inside the for loop shows the empty buffer on the address function pointer

    2.In the second entry, the values changed when read  the memory of buff[count] which were 0's before.

    When I viewed the graph at the same location after it hit the BP, this is what I got for buff[count]

    Can you kindly let me know, why its pushing these data's, when there is no input in the line in, and the memory address has been initialized prior to entering this for loop.

    Regards,

    Nancy