Search results

  1. iliketomakestuff

    Audio or LEDs, but not both. Please help

    I tried that, and thought it worked, but apparently not. I had multiple files open and was testing against the wrong one. Still no go.
  2. iliketomakestuff

    Audio or LEDs, but not both. Please help

    Yes, the idea was that the SPI transaction would compartmentalize the two actions (I thought, anyway). I tested the above and it didn't seem to have any affect. Also, I changed the SPI speed that Pictographer mentioned, and it did help with flicker a little but didn't change the actual issue...
  3. iliketomakestuff

    Audio or LEDs, but not both. Please help

    So, here's a stripped down version of the essentials of this code. Basically, I can get audio to play or LEDs to work, but if both are active in the code, only the first one called works. I tried doing an SPI transaction around the LED lines, but that doesn't seem to affect it. Any ideas...
  4. iliketomakestuff

    Change volume of sample while its playing

    Ok, update for you guys. Thank you all for your help. A couple of things. Looks like the audio conversion app I was using was the culprit, eventhough it theoretically should have been the same as Audacity. I tried Audacity and that seemed to be the correct fix once I got it to 16-bit. After...
  5. iliketomakestuff

    Change volume of sample while its playing

    Ah, good stuff, thank you. I got the pulse width example working quickly and it played the pulse correctly. So, the problem must be in my files. I'll look and see if I'm missing some spec for the audio.
  6. iliketomakestuff

    Change volume of sample while its playing

    Sorry, typed incorrectly. The speaker clicks at the same delay set in the code but the actual sound effect that I loaded does NOT play. It's just a click. I thought maybe the delay was too short and it was interrupting itself, but even with a longer delay, there is still only a clicking sound.
  7. iliketomakestuff

    Change volume of sample while its playing

    I've got this which covers that. Eventually I will be doing some LED stuff, so that's good to know as well, but this example excludes all other code. #define PROP_AMP_ENABLE 5 #define FLASH_CHIP_SELECT 6 // Enable the amplifier on the prop shield pinMode(PROP_AMP_ENABLE, OUTPUT)...
  8. iliketomakestuff

    Change volume of sample while its playing

    Haha, awesome :)
  9. iliketomakestuff

    Change volume of sample while its playing

    Yup, that was one problem for sure. I should have caught that but I think I looked at the image at http://www.pjrc.com/store/prop_shield.html under Audio Amplifier and just subconsciously didn't add those headers since they weren't in that photo. I should have thought through it. So, I;ve...
  10. iliketomakestuff

    Change volume of sample while its playing

    For completeness, from the ListFiles example All Files on SPI Flash chip: FX41.RAW 28694 bytes FX4.RAW 28694 bytes
  11. iliketomakestuff

    Change volume of sample while its playing

    Yeah, this is the output from TeensyTransfer Optimus:extras bob1$ ./teensytransfer -l 28694 FX41.RAW 28694 FX4.RAW
  12. iliketomakestuff

    Change volume of sample while its playing

    Here's the code I'm running and a photo of the setup. // Converted from the WavFilePlay from the Teensy release: // hardware/teensy/avr/libraries/Audio/examples/WavFilePlayer/WavFilePlayer.ino // // Simple RAW file player example for the prop shield to use the Analog DAC // and prop shield...
  13. iliketomakestuff

    Change volume of sample while its playing

    That's good to know actually, it's the same one I'm using. That's one less variable! Thank you
  14. iliketomakestuff

    Change volume of sample while its playing

    I apologize, I quoted the code above because I copiedand pasted it into my editor (changed the audio file name) and wasn't working. I'll repost my code when I can get back to the machine.
  15. iliketomakestuff

    Change volume of sample while its playing

    Thank you for posting this! I'm really surprised how hard it's been to find a working example of this setup, given how seeming useful the Prop Shield is. So, I looked through the code, removed the volume stuff (for now) and have tested it. It seems to play fine, but just like with everything...
Back
Top