Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Will 7 · Sep 01, 2010 at 02:00 PM · audiosoundrecordingrecord

Recording Game Sound (In Game)

I have created a little drum sim/game and i was wondering if there is anyway to record the game sound to an audio file and then replay it back without leaving the game? I have had a look at other questions and i think someone said it would be possible in unity3. If the worst comes to the worst I could create a script which saves the time of which the drum is played to a text file and then read it back. But I would rather avoid this because using the sound (out of game would be helpful). Any help would be greatly appreciated.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Galactisys · Sep 01, 2010 at 07:36 PM

I don't see a direct way to extract just game audio or stream audio events out of the engine.

That said, you could consider something akin to MIDI and store the strength of hits/releases of your drums in a file as measured in time.

{KIT} {TIME} {HIT/RELEASE} {VELOCITY}
DrumA 00:00:051 DOWN 0.8
DrumA 00:01:011 UP 0.1
DrumB 00:01:012 DOWN 0.3
DrumB 00:01:014 UP 0.1
DrumB 00:02:015 DOWN 0.3
DrumB 00:02:017 UP 0.1

If you have the drum sounds as resources assets (.wav, .mp3, etc.) you could then play them back outside the game by firing playback of the assets (kit) against the values described in the file via another application.

If you are concerned about audio source location or effects, you could probably simulate that as well by extending the amount of information you store.

{KIT} {TIME} {HIT/RELEASE} {VELOCITY} {POSX} {POSY} {DELAY} etc...

One interesting application of storing it as a sequence of instructions would be that you could 'ghost' drum or add accompaniment in-game by recording a session and allowing the player to play along with a recorded session.

Anyhow, just a thought.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Will 7 · Sep 02, 2010 at 04:06 PM 0
Share

Thanks for that, yeah I think I will stick with this "midi" idea.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

talking tom audio record/playback tutorial 1 Answer

Voice Recording issue ?? 0 Answers

Recrding sound 2 Answers

How To Turn Off Sound For Certain Objects? 1 Answer

unity won't play sounds i implement 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges