-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New driver for Brother wordprocessor/typewriter LW-30 #10996
Conversation
src/mame/brother/lw30.cpp
Outdated
|
||
const lw30_format FLOPPY_LW30_FORMAT; | ||
|
||
class brother_beep_device : public device_t, public device_sound_interface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this beeper used by other Brother machines? If it is, it should be moved out to a separate file in mame/brother so it can be shared.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This custom beeper device doesn't make much sense to me, almost all of it is a copy of sound/beep.*
Looking at the comments below (where it calls beeper_w), isn't the hardware just a 1bit dac?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, looking further, it's like a dac_2bit_ones_complement_device, where one bit is software controlled and the other is 4khz(can use clock_device for that)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately it's about 5 years since I reverse-engineered this hardware. As I remember, it uses a fixed 4 kHz beeper, but the Tetris game uses CPU-waitloop-controlled PWM to achieve different frequencies to play a melody. That didn't work with the original MAME beep device, so I modified it. Was something about restarting the oscillator or sth like this. Don't know about other Brother machines because I couldn't find any software on them to use it like the LW-30 Tetris.
@galibert could you please review the floppy format in this pull request? |
We can worry about the sound device later – it may be possible to implement it some other way (e.g. DAC with volume control input or something). |
oh just wanted to commit the addressed comments, and just saw you already did the source cleanup. thanks. |
split off of PR#8202