Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miyako/4d-plugin-play-sound
Play sound file.
https://github.com/miyako/4d-plugin-play-sound
4d-plugin 4d-plugin-apple-silicon
Last synced: about 2 months ago
JSON representation
Play sound file.
- Host: GitHub
- URL: https://github.com/miyako/4d-plugin-play-sound
- Owner: miyako
- License: mit
- Created: 2014-07-03T12:55:03.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-03-10T07:18:43.000Z (almost 3 years ago)
- Last Synced: 2023-03-25T01:12:18.151Z (almost 2 years ago)
- Topics: 4d-plugin, 4d-plugin-apple-silicon
- Language: C
- Homepage:
- Size: 3.74 MB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![version](https://img.shields.io/badge/version-17%2B-3E8B93)
![platform](https://img.shields.io/static/v1?label=platform&message=mac-intel%20|%20mac-arm%20|%20win-32%20|%20win-64&color=blue)
[![license](https://img.shields.io/github/license/miyako/4d-plugin-play-sound)](LICENSE)
![downloads](https://img.shields.io/github/downloads/miyako/4d-plugin-play-sound/total)# 4d-plugin-play-sound
On Windows, legacy [`WinMM`](https://docs.microsoft.com/en-us/previous-versions/dd743680(v=vs.85)) is called via [`mciSendString`](https://docs.microsoft.com/en-us/previous-versions/dd757161(v=vs.85)). On Mac, [`NSSound`](https://developer.apple.com/documentation/appkit/nssound?language=objc) is called.
Supported actions on Windows:
* [open](https://docs.microsoft.com/ja-jp/windows/win32/multimedia/open)
* [pause](https://docs.microsoft.com/ja-jp/windows/win32/multimedia/pause)
* [play](https://docs.microsoft.com/ja-jp/windows/win32/multimedia/play)
* [stop](https://docs.microsoft.com/ja-jp/windows/win32/multimedia/stop)
* [close](https://docs.microsoft.com/ja-jp/windows/win32/multimedia/close)
* [resume](https://docs.microsoft.com/ja-jp/windows/win32/multimedia/resume)Extra selectors supported on Mac:
* [duration](https://developer.apple.com/documentation/appkit/nssound/1477313-duration?language=objc)
* [playing](https://developer.apple.com/documentation/appkit/nssound/1477302-playing?language=objc)---
For recording and playback, consider [4d-plugin-sfml-audio](https://github.com/miyako/4d-plugin-sfml-audio).