Author Topic: Emulator with sound  (Read 7128 times)

0 Members and 1 Guest are viewing this topic.

Offline Harry5862

  • LV2 Member (Next: 40)
  • **
  • Posts: 37
  • Rating: +0/-1
    • View Profile
Emulator with sound
« on: September 30, 2014, 10:17:54 am »
We have an emulator and an audio player for the nspire.
 
Is it possible to make an emulator with sound? ???
 
Sorry if there are any mistakes.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Emulator with sound
« Reply #1 on: September 30, 2014, 10:52:34 am »
Hi and welcome to the forums. :) I think it would be possible since it was doable on the real calculator, and it would be much less dangerous to do it on an emulator (on the real calculator, when connecting an audio speaker or an headset you might end up connecting the cables to the wrong dock pins, either by mistake or by accidentally touching them then accidentally brick the calculator.

However, the question is more if it would be worth it, because since the TI-Nspire lacks a 2.5mm jack, much fewer people can use the audio player than they could use the ones on calculators that had such link port. With a 2.5mm port like on the TI-84 Plus or fx-CG10, you can much more easily (and safely) connect an headset with a 2.5 male to 3.5 mm female adapter and such adapter or headphones is much easier and cheaper to find than the hardware required to get sound on a TI-Nspire CX. There are currently only two Nspire apps that supports sound: NyanCalc and the Audio Player.

Offline Harry5862

  • LV2 Member (Next: 40)
  • **
  • Posts: 37
  • Rating: +0/-1
    • View Profile
Re: Emulator with sound
« Reply #2 on: October 05, 2014, 11:41:53 am »
I build an adapter for the bottom port and put tape on the pins I dont use. :)
Could anyone make an emulator with sound that the same pins use  as the audio player by Vogtinator?
http://www.omnimaga.org/ti-nspire-projects/nspire-audio-player!/
Sorry if there are any mistakes.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Emulator with sound
« Reply #3 on: October 05, 2014, 12:58:18 pm »
I don't exactly understand why you would want the emulator to support one special app?
You can play sound just fine without an emulated hack...
But if you really want, to you can implement it yourself: https://github.com/antoniovazquezblanco/nspire_emu
You'll "just" have to measure the time between HIGH and LOW on GPIO4 and set the output value proportionally (the ratio is the amplification).

Offline Harry5862

  • LV2 Member (Next: 40)
  • **
  • Posts: 37
  • Rating: +0/-1
    • View Profile
Re: Emulator with sound
« Reply #4 on: October 06, 2014, 02:37:50 am »
I mean for example the gba emulator with sound.
Sorry if there are any mistakes.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Emulator with sound
« Reply #5 on: October 06, 2014, 02:47:51 am »
I don't think the GBA emulator supports sound.

Offline Harry5862

  • LV2 Member (Next: 40)
  • **
  • Posts: 37
  • Rating: +0/-1
    • View Profile
Re: Emulator with sound
« Reply #6 on: October 06, 2014, 03:12:31 am »
Yes and can somebody implement sound?
Sorry if there are any mistakes.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Emulator with sound
« Reply #7 on: October 06, 2014, 03:14:53 am »
Yes, if you want to implement it. The issue is I think it's worthless to do so just for 1 single user in the world.

And in order to connect a speaker to the calculator, the manipulation is very dangerous since you can accidentally short-circuit the pins so I'm unsure if any developer will take the risk only to see Omnimaga forums flooded by dozens and dozens of "Nspire doesn't work anymore help!" threads.

Offline Harry5862

  • LV2 Member (Next: 40)
  • **
  • Posts: 37
  • Rating: +0/-1
    • View Profile
Re: Emulator with sound
« Reply #8 on: October 06, 2014, 03:39:47 am »
OK were can I get the source of the gba emulator.
Sorry if there are any mistakes.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Emulator with sound
« Reply #9 on: October 06, 2014, 03:41:05 am »
Probably on Ticalc.org with the GBA emulator itself, unless Calc84maniac made it closed-source. In such case you would need to ask him via private message here (without insisting of course, because Omni forums has an ignore/block user feature)